Skip to main content

Module f32

Module f32 

1.6.0 ยท Source
Expand description

Constants for the f32 single-precision floating point type.

See also the f32 primitive type.

Mathematically significant numbers are provided in the consts sub-module.

For the constants defined directly in this module (as distinct from those defined in the consts sub-module), new code should instead use the associated constants defined directly on the f32 type.

Re-exportsยง

use crate::convert::FloatToFloat; ๐Ÿ”’ Experimental
use crate::convert::FloatToInt; ๐Ÿ”’ Experimental
use crate::num::FpCategory; ๐Ÿ”’
use crate::num::float_macros::float_impl; ๐Ÿ”’
use crate::panic::const_assert; ๐Ÿ”’ Experimental
use crate::cfg_select; ๐Ÿ”’
use crate::intrinsics; ๐Ÿ”’ Experimental
use crate::mem; ๐Ÿ”’

Modulesยง

consts
Basic mathematical constants.
mathExperimental
Experimental implementations of floating point functions in core.

Constantsยง

DIGITSDeprecated
Approximate number of significant digits in base 10. Use f32::DIGITS instead.
EPSILONDeprecated
Machine epsilon value for f32. Use f32::EPSILON instead.
INFINITYDeprecated
Infinity (โˆž). Use f32::INFINITY instead.
MANTISSA_DIGITSDeprecated
Number of significant digits in base 2. Use f32::MANTISSA_DIGITS instead.
MAXDeprecated
Largest finite f32 value. Use f32::MAX instead.
MAX_10_EXPDeprecated
Maximum possible power of 10 exponent. Use f32::MAX_10_EXP instead.
MAX_EXPDeprecated
Maximum possible power of 2 exponent. Use f32::MAX_EXP instead.
MINDeprecated
Smallest finite f32 value. Use f32::MIN instead.
MIN_10_EXPDeprecated
Minimum possible normal power of 10 exponent. Use f32::MIN_10_EXP instead.
MIN_EXPDeprecated
One greater than the minimum possible normal power of 2 exponent. Use f32::MIN_EXP instead.
MIN_POSITIVEDeprecated
Smallest positive normal f32 value. Use f32::MIN_POSITIVE instead.
NANDeprecated
Not a Number (NaN). Use f32::NAN instead.
NEG_INFINITYDeprecated
Negative infinity (โˆ’โˆž). Use f32::NEG_INFINITY instead.
RADIXDeprecated
The radix or base of the internal representation of f32. Use f32::RADIX instead.