Expand description
Utilities for working with hex float formats.
Structsยง
- HexFloat
Parse Error - Hexf
- Format a floating point number as its IEEE hex (
%a
) representation. - Parsed ๐
- A parsed finite and unsigned floating point number.
Functionsยง
- dec_
digit ๐ - fmt_
any_ ๐hex - hex_
digit ๐ - hf16
- Construct a 16-bit float from hex float representation (C-style)
- hf32
- Construct a 32-bit float from hex float representation (C-style)
- hf64
- Construct a 64-bit float from hex float representation (C-style)
- hf128
- Construct a 128-bit float from hex float representation (C-style)
- parse_
any - Parse any float from hex to its bitwise representation.
- parse_
finite ๐ - parse_
hex ๐ - Parse a hexadecimal float x
- parse_
hex_ exact - Parses any float to its bitwise representation, returning an error if it cannot be represented exactly
- shr2_
round ๐ - Divide by 4, rounding with the given mode
- shr_
odd_ ๐rounding - Shift right, rounding all inexact divisions to the nearest odd number E.g. (0 >> 4) -> 0, (1..=31 >> 4) -> 1, (32 >> 4) -> 2, โฆ
- u128_
ilog2 ๐ u128::ilog2