mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
seq: handle scientific notation with uppercase 'E'
This commit is contained in:
parent
c8bcdb9267
commit
76dfcd82fa
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ impl FromStr for PreciseNumber {
|
||||||
// number differently depending on its form. This is important
|
// number differently depending on its form. This is important
|
||||||
// because the form of the input dictates how the output will be
|
// because the form of the input dictates how the output will be
|
||||||
// presented.
|
// presented.
|
||||||
match (s.find('.'), s.find('e')) {
|
match (s.find('.'), s.find(['e', 'E'])) {
|
||||||
// For example, "123456" or "inf".
|
// For example, "123456" or "inf".
|
||||||
(None, None) => parse_no_decimal_no_exponent(s),
|
(None, None) => parse_no_decimal_no_exponent(s),
|
||||||
// For example, "123e456" or "1e-2".
|
// For example, "123e456" or "1e-2".
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue