Skip to main content

Module get_str

Module get_str 

Source

Functionsยง

get_str
Converts a Float to base-base mantissa digits and an exponent, rounding to digit_len digits with the rounding mode rm.
get_str_digit_count
Returns the number of significant digits that suffice to losslessly represent any Float of precision prec in base base: printing such a Float to this many digits with rounding to nearest (for example with get_str), then reading the digits back at precision prec, again rounding to nearest, recovers the original value exactly.