Module plotters::data::float

source ·
Expand description

Handles the printing of floating-point numbers.

Structs§

Functions§

  • 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.