mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
seq: handle scientific notation with uppercase 'E'
This commit is contained in:
@@ -333,7 +333,7 @@ impl FromStr for PreciseNumber {
|
||||
// number differently depending on its form. This is important
|
||||
// because the form of the input dictates how the output will be
|
||||
// presented.
|
||||
match (s.find('.'), s.find('e')) {
|
||||
match (s.find('.'), s.find(['e', 'E'])) {
|
||||
// For example, "123456" or "inf".
|
||||
(None, None) => parse_no_decimal_no_exponent(s),
|
||||
// For example, "123e456" or "1e-2".
|
||||
|
||||
Reference in New Issue
Block a user