6 The number of decimal digits that can be represented without losing precision
1.19209290e-07_f32 The machine epsilon (difference between 1.0 and the next representable value)
(1_f32 / 0_f32).as(Float32) 24 The number of digits that can be represented without losing precision (in base RADIX)
3.40282347e+38_f32 Largest finite value
38 The maximum possible power of 10 exponent (such that 10**MAX_10_EXP is representable)
128 The maximum possible normal power of 2 exponent
-3.40282347e+38_f32 Smallest finite value
-37 The minimum possible power of 10 exponent (such that 10**MIN_10_EXP is representable)
-125 The minimum possible normal power of 2 exponent
1.17549435e-38_f32 Smallest representable positive value
(0_f32 / 0_f32).as(Float32) 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/Float32.html