[−][src]Crate fraction_list_fmt_align
Formats a list of arbitrary fractional numbers (either string or f32/f64) so that they are correctly aligned when printed line by line. It also removes unnecessary zeroes. This means that it rather returns "7" instead of "7.000000".
Example Input
"-42"
"0.3214"
"1000"
"-1000.2"
"2.00000"
Example Output
" -42 "
" 0.3214"
" 1000 "
"-1000.2 "
" 2 "
Enums
FractionNumber |
Functions
fmt_align_fraction_strings | Aligns a number of formatted fraction numbers. Valid strings are for example
|
fmt_align_fractions | Convenient wrapper around |