Expand description
Miscellaneous tools to format and parse numbers, durations, etc.
TODO(emilk): move some of this numeric formatting into emath
so we can use it in egui_plot
.
Modules§
- time 🔒
Structs§
- Options for how to format a floating point number, e.g. an
f64
.
Constants§
- MINUS 🔒The minus character: https://www.compart.com/en/unicode/U+2212
Traits§
Functions§
- Add thousands separators to a number, every three steps, counting from the last character.
- Pretty format a large number by using SI notation (base 10), e.g.
- Pretty format a number of bytes by using SI notation (base2), e.g.
- Format a number with about 7 decimals of precision.
- Format a number with about 15 decimals of precision.
- Pretty format a signed number by using thousands separators for readability.
- Format a latitude or longitude value.
- Formats a timestamp in seconds to a string.
- Pretty format an unsigned integer by using thousands separators for readability.
- When showing grid-lines representing time.
- Parses a number, ignoring whitespace (e.g. thousand separators), and treating the special minus character
MINUS
(−) as a minus sign. - Parses a number, ignoring whitespace (e.g. thousand separators), and treating the special minus character
MINUS
(−) as a minus sign. - Parses seconds from a string.