Module float

Source
Expand description

Handles the printing of floating-point numbers.

Structs§

FloatPrettyPrinter
Handles printing of floating point numbers

Functions§

pretty_print_float
The function that pretty prints the floating number Since rust doesn’t have anything that can format a float with out appearance, so we just implement a float pretty printing function, which finds the shortest representation of a floating point number within the allowed error range.