Numbers

标准数值类型

抽象数值类型

  1. Core.Number
  2. Core.Real
  3. Core.AbstractFloat
  4. Core.Integer
  5. Core.Signed
  6. Core.Unsigned
  7. Base.AbstractIrrational

具象数值类型

  1. Core.Float16
  2. Core.Float32
  3. Core.Float64
  4. Base.BigFloat
  5. Core.Bool
  6. Core.Int8
  7. Core.UInt8
  8. Core.Int16
  9. Core.UInt16
  10. Core.Int32
  11. Core.UInt32
  12. Core.Int64
  13. Core.UInt64
  14. Core.Int128
  15. Core.UInt128
  16. Base.BigInt
  17. Base.Complex
  18. Base.Rational
  19. Base.Irrational

数据格式

  1. Base.digits
  2. Base.digits!
  3. Base.bitstring
  4. Base.parse
  5. Base.tryparse
  6. Base.big
  7. Base.signed
  8. Base.unsigned
  9. Base.float(::Any)
  10. Base.Math.significand
  11. Base.Math.exponent
  12. Base.complex(::Complex)
  13. Base.bswap
  14. Base.hex2bytes
  15. Base.hex2bytes!
  16. Base.bytes2hex

常用数值函数和常量

  1. Base.one
  2. Base.oneunit
  3. Base.zero
  4. Base.im
  5. Base.MathConstants.pi
  6. Base.MathConstants.ℯ
  7. Base.MathConstants.catalan
  8. Base.MathConstants.eulergamma
  9. Base.MathConstants.golden
  10. Base.Inf
  11. Base.Inf32
  12. Base.Inf16
  13. Base.NaN
  14. Base.NaN32
  15. Base.NaN16
  16. Base.issubnormal
  17. Base.isfinite
  18. Base.isinf
  19. Base.isnan
  20. Base.iszero
  21. Base.isone
  22. Base.nextfloat
  23. Base.prevfloat
  24. Base.isinteger
  25. Base.isreal
  26. Core.Float32(::Any)
  27. Core.Float64(::Any)
  28. Base.Rounding.rounding
  29. Base.Rounding.setrounding(::Type, ::Any)
  30. Base.Rounding.setrounding(::Function, ::Type, ::RoundingMode)
  31. Base.Rounding.get_zero_subnormals
  32. Base.Rounding.set_zero_subnormals

整型

  1. Base.count_ones
  2. Base.count_zeros
  3. Base.leading_zeros
  4. Base.leading_ones
  5. Base.trailing_zeros
  6. Base.trailing_ones
  7. Base.isodd
  8. Base.iseven
  9. Base.@int128_str
  10. Base.@uint128_str

BigFloats and BigInts

The BigFloat and BigInt types implements arbitrary-precision floating point and integer arithmetic, respectively. For BigFloat the GNU MPFR library is used, and for BigInt the [GNU Multiple Precision Arithmetic Library (GMP)] (https://gmplib.org) is used.

  1. Base.MPFR.BigFloat(::Any, rounding::RoundingMode)
  2. Base.precision
  3. Base.MPFR.precision(::Type{BigFloat})
  4. Base.MPFR.setprecision
  5. Base.GMP.BigInt(::Any)
  6. Base.@big_str