Module num

Source
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
LowerHex ๐Ÿ”’
A hexadecimal (base 16) radix, formatted with lower-case characters
Octal ๐Ÿ”’
An octal (base 8) radix
UpperHex ๐Ÿ”’
A hexadecimal (base 16) radix, formatted with upper-case characters

Constantsยง

U128_MAX_DEC_N ๐Ÿ”’

Staticsยง

DEC_DIGITS_LUT ๐Ÿ”’

Traitsยง

DisplayInt ๐Ÿ”’๐Ÿ‘ป
GenericRadix ๐Ÿ”’๐Ÿ‘ป
A type that represents a specific radix

Functionsยง

div_rem_1e16 ๐Ÿ”’
Euclidean division plus remainder with constant 1E16 basically consumes 16 decimals from n.
enc_16lsd ๐Ÿ”’
Encodes the 16 least-significant decimals of n into buf[OFFSET .. OFFSET + 16 ].
exp_u128 ๐Ÿ”’
slice_buffer_to_str ๐Ÿ”’ โš 
This function converts a slice of ascii characters into a &str starting from offset.