This module provides constants which are specific to the implementation of the f32
floating point data type.
See also the f32
primitive type.
Mathematically significant numbers are provided in the consts
sub-module.
Although using these constants won’t cause compilation warnings, new code should use the associated constants directly on the primitive type.
consts |
Basic mathematical constants. |
DIGITS |
Approximate number of significant digits in base 10. Use |
EPSILON |
Machine epsilon value for |
INFINITY |
Infinity (∞). Use |
MANTISSA_DIGITS |
Number of significant digits in base 2. Use |
MAX |
Largest finite |
MAX_10_EXP |
Maximum possible power of 10 exponent. Use |
MAX_EXP |
Maximum possible power of 2 exponent. Use |
MIN |
Smallest finite |
MIN_10_EXP |
Minimum possible normal power of 10 exponent. Use |
MIN_EXP |
One greater than the minimum possible normal power of 2 exponent. Use |
MIN_POSITIVE |
Smallest positive normal |
NAN |
Not a Number (NaN). Use |
NEG_INFINITY |
Negative infinity (−∞). Use |
RADIX |
The radix or base of the internal representation of |
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/f32/index.html