[go: up one dir, main page]

Module float

Module float 

Source
Expand description

Multi-precision floating-point numbers with correct rounding.

This module provides support for floating-point numbers of type Float.

Structs§

BorrowFloat
Used to get a reference to a Float.
MiniFloat
A small float that does not require any memory allocation.
OrdFloat
A float that supports total ordering and hashing.
ParseFloatError
An error which can be returned when parsing a Float.
SmallFloatDeprecated
A small float that did not require any memory allocation until version 1.23.0.

Enums§

Constant
The available floating-point constants.
FreeCache
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.
ToSmallDeprecated
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.