Expand description
Integer and floating-point number formatting
Modulesยง
- imp ๐
Macrosยง
- impl_
Debug ๐ - impl_
Display ๐ - impl_
Exp ๐ - impl_
int ๐ - int_
base ๐ - integer ๐
- radix ๐
Structsยง
- Binary ๐
- A binary (base 2) radix
- Lower
Hex ๐ - A hexadecimal (base 16) radix, formatted with lower-case characters
- Octal ๐
- An octal (base 8) radix
- Upper
Hex ๐ - A hexadecimal (base 16) radix, formatted with upper-case characters
Staticsยง
- DEC_
DIGITS_ ๐LUT
Traitsยง
- Display
Int ๐๐ป - Generic
Radix ๐๐ป - A type that represents a specific radix
Functionsยง
- exp_
u128 ๐ - fmt_
u128 ๐ - Specialized optimization for u128. Instead of taking two items at a time, it splits into at most 2 u64s, and then chunks by 10e16, 10e8, 10e4, 10e2, and then 10e1. It also has to handle 1 last item, as 10^40 > 2^128 > 10^39, whereas 10^20 > 2^64 > 10^19.
- parse_
u64_ ๐into - Helper function for writing a u64 into
buf
going from last to first, withcurr
. - udiv_
1e19 ๐ - Partition of
n
into n > 1e19 and rem <= 1e19