15
The number of decimal digits that can be represented without losing precision
2.2204460492503131e-16
The machine epsilon (difference between 1.0 and the next representable value)
(1_f64 / 0_f64).as(Float64)
53
The number of digits that can be represented without losing precision (in base RADIX)
1.7976931348623157e+308
Largest finite value
308
The maximum possible power of 10 exponent (such that 10**MAX_10_EXP is representable)
1024
The maximum possible normal power of 2 exponent
-1.7976931348623157e+308
Smallest finite value
-307
The minimum possible power of 10 exponent (such that 10**MIN_10_EXP is representable)
-1021
The minimum possible normal power of 2 exponent
2.2250738585072014e-308
Smallest representable positive value
(0_f64 / 0_f64).as(Float64)
2
The radix or integer base used by the internal representation
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns true
if self
is not equal to other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of multiplying self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of adding self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of subtracting self
and other.
Returns the result of division self
and other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is less than or equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is equal to other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns true
if self
is greater than or equal to other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Returns the float division of self
and other.
Rounds this number to a given precision in decimal digits.
Returns self
converted to Float64
.
Returns self
converted to Float64
.
Returns self
converted to Float32
.
Returns self
converted to Float32
.
Returns self
converted to Float64
.
Returns self
converted to Float64
.
Returns self
converted to Int32
.
Returns self
converted to Int32
.
Returns self
converted to Int128
.
Returns self
converted to Int128
.
Returns self
converted to Int16
.
Returns self
converted to Int16
.
Returns self
converted to Int32
.
Returns self
converted to Int32
.
Returns self
converted to Int64
.
Returns self
converted to Int64
.
Returns self
converted to Int8
.
Returns self
converted to Int8
.
Returns a string representation of this object.
Returns self
converted to UInt32
.
Returns self
converted to UInt32
.
Returns self
converted to UInt128
.
Returns self
converted to UInt128
.
Returns self
converted to UInt16
.
Returns self
converted to UInt16
.
Returns self
converted to UInt32
.
Returns self
converted to UInt32
.
Returns self
converted to UInt64
.
Returns self
converted to UInt64
.
Returns self
converted to UInt8
.
Returns self
converted to UInt8
.
Float
Float
Comparable(BigDecimal)
Comparable(BigRational)
Comparable(BigInt)
Number
Number
Number
Comparable(BigFloat)
Comparable(Number)
Value
Object
Object
Rounds this number to a given precision in decimal digits.
-1763.116.round(2) # => -1763.12
Returns self
converted to Float64
. Raises OverflowError
in case of overflow.
Returns self
converted to Float64
. In case of overflow a wrapping is performed.
Returns self
converted to Float32
. Raises OverflowError
in case of overflow.
Returns self
converted to Float32
. In case of overflow a wrapping is performed.
Returns self
converted to Float64
. Raises OverflowError
in case of overflow.
Returns self
converted to Float64
. In case of overflow a wrapping is performed.
Returns self
converted to Int32
. Raises OverflowError
in case of overflow.
Returns self
converted to Int32
. In case of overflow a wrapping is performed.
Returns self
converted to Int128
. Raises OverflowError
in case of overflow.
Returns self
converted to Int128
. In case of overflow a wrapping is performed.
Returns self
converted to Int16
. Raises OverflowError
in case of overflow.
Returns self
converted to Int16
. In case of overflow a wrapping is performed.
Returns self
converted to Int32
. Raises OverflowError
in case of overflow.
Returns self
converted to Int32
. In case of overflow a wrapping is performed.
Returns self
converted to Int64
. Raises OverflowError
in case of overflow.
Returns self
converted to Int64
. In case of overflow a wrapping is performed.
Returns self
converted to Int8
. Raises OverflowError
in case of overflow.
Returns self
converted to Int8
. In case of overflow a wrapping is performed.
Returns self
converted to UInt32
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt32
. In case of overflow a wrapping is performed.
Returns self
converted to UInt128
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt128
. In case of overflow a wrapping is performed.
Returns self
converted to UInt16
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt16
. In case of overflow a wrapping is performed.
Returns self
converted to UInt32
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt32
. In case of overflow a wrapping is performed.
Returns self
converted to UInt64
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt64
. In case of overflow a wrapping is performed.
Returns self
converted to UInt8
. Raises OverflowError
in case of overflow.
Returns self
converted to UInt8
. In case of overflow a wrapping is performed.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Float64.html