Module half::consts [−][src]
Useful f16 constants.
Constants
| DIGITS |
16-bit equivalent of |
| E |
Euler's number. |
| EPSILON |
16-bit floating point epsilon. |
| FRAC_1_PI |
1.0/pi |
| FRAC_1_SQRT_2 |
1.0/sqrt(2.0) |
| FRAC_2_PI |
2.0/pi |
| FRAC_2_SQRT_PI |
2.0/sqrt(pi) |
| FRAC_PI_2 |
pi/2.0 |
| FRAC_PI_3 |
pi/3.0 |
| FRAC_PI_4 |
pi/4.0 |
| FRAC_PI_6 |
pi/6.0 |
| FRAC_PI_8 |
pi/8.0 |
| INFINITY |
16-bit positive infinity. |
| LN_2 |
ln(2.0) |
| LN_10 |
ln(10.0) |
| LOG10_E |
log10(e) |
| LOG2_E |
log2(e) |
| MANTISSA_DIGITS |
16-bit equivalent of |
| MAX |
Largest finite |
| MAX_10_EXP |
16-bit equivalent of |
| MAX_EXP |
16-bit equivalent of |
| MAX_SUBNORMAL |
16-bit maximum subnormal value. Approx. |
| MIN |
Smallest finite |
| MIN_10_EXP |
16-bit equivalent of |
| MIN_EXP |
16-bit equivalent of |
| MIN_POSITIVE |
Smallest positive, normalized |
| MIN_POSITIVE_SUBNORMAL |
16-bit minimum positive subnormal value. Approx. |
| NAN |
16-bit NaN. |
| NEG_INFINITY |
16-bit negative infinity. |
| NEG_ZERO |
16-bit floating point |
| ONE |
16-bit floating point |
| PI |
Archimedes' constant. |
| RADIX |
16-bit equivalent of |
| SQRT_2 |
sqrt(2) |
| ZERO |
16-bit floating point |