Expand description
Handles the printing of floating-point numbers.
Structs§
- Float
Pretty Printer - 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.