Expand description
Multi-precision floating-point numbers with correct rounding.
This module provides support for floating-point numbers of type
Float
.
Structs§
- Borrow
Float - Used to get a reference to a
Float
. - Mini
Float - A small float that does not require any memory allocation.
- OrdFloat
- A float that supports total ordering and hashing.
- Parse
Float Error - An error which can be returned when parsing a
Float
. - Small
Float Deprecated - A small float that did not require any memory allocation until version 1.23.0.
Enums§
- Constant
- The available floating-point constants.
- Free
Cache - Specifies which cache to free.
- Round
- The rounding methods for floating-point values.
- Special
- Special floating-point values.
Traits§
- ToMini
- Types implementing this trait can be converted to
MiniFloat
. - ToSmall
Deprecated - Types implementing this trait can be converted to
SmallFloat
.
Functions§
- allowed_
exp_ range - Returns the maximum allowed range for the exponent.
- exp_max
- Returns the maximum value for the exponent.
- exp_min
- Returns the minimum value for the exponent.
- free_
cache - Frees various caches and memory pools that are used internally.
- prec_
max - Returns the maximum value for the precision.
- prec_
max_ 64 - Returns the maximum value for the precision.
- prec_
min - Returns the minimum value for the precision.
- prec_
min_ 64 - Returns the minimum value for the precision.