mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 09:48:03 +00:00
2ac5dc0a70
Change the way `seq` computes the number of digits needed to print a number so that it works for inputs given in scientific notation. Specifically, this commit parses the input string to determine whether it is an integer, a float in decimal notation, or a float in scientific notation, and then computes the number of integral digits and the number of fractional digits based on that. This also supports floating point negative zero, expressed in both decimal and scientific notation. |
||
---|---|---|
.. | ||
benches/factor | ||
by-util | ||
common | ||
fixtures | ||
test_util_name.rs | ||
tests.rs |