nushell/crates/nu-command/tests/commands/math
Loïc Riegel 1503ee09ba
Bugfix/loss of precision when parsing value with unit (#15606)
Closes #12858

# Description
As explained in the ticket, easy to reproduce. Example: 1.07 minute is
1.07*60=64.2 secondes
```nushell
# before - wrong
> 1.07min
1min 4sec

# now - right
> 1.07min
1min 4sec 200ms
```

# User-Facing Changes
Bug is fixed when using ``into duration``.

# Tests + Formatting
Added a test for ``into duration``
Fixed ``parse_long_duration`` test: we gained precision 😄 

# After Submitting
Release notes? Or blog is enough? Let me know
2025-04-19 17:02:40 -05:00
..
abs.rs Math commands can work with bounded ranges and produce list of numbers (#15319) 2025-03-20 17:35:50 +01:00
avg.rs bugfix: math commands now return error with infinite range [#15135] (#15236) 2025-03-11 14:40:26 +01:00
ceil.rs Math commands can work with bounded ranges and produce list of numbers (#15319) 2025-03-20 17:35:50 +01:00
floor.rs Math commands can work with bounded ranges and produce list of numbers (#15319) 2025-03-20 17:35:50 +01:00
log.rs Math commands can work with bounded ranges and produce list of numbers (#15319) 2025-03-20 17:35:50 +01:00
max.rs bugfix: math commands now return error with infinite range [#15135] (#15236) 2025-03-11 14:40:26 +01:00
median.rs bugfix: math commands now return error with infinite range [#15135] (#15236) 2025-03-11 14:40:26 +01:00
min.rs bugfix: math commands now return error with infinite range [#15135] (#15236) 2025-03-11 14:40:26 +01:00
mod.rs Bugfix/loss of precision when parsing value with unit (#15606) 2025-04-19 17:02:40 -05:00
mode.rs bugfix: math commands now return error with infinite range [#15135] (#15236) 2025-03-11 14:40:26 +01:00
product.rs bugfix: math commands now return error with infinite range [#15135] (#15236) 2025-03-11 14:40:26 +01:00
round.rs Math commands can work with bounded ranges and produce list of numbers (#15319) 2025-03-20 17:35:50 +01:00
sqrt.rs Math commands can work with bounded ranges and produce list of numbers (#15319) 2025-03-20 17:35:50 +01:00
stddev.rs Math commands can work with bounded ranges and produce list of numbers (#15319) 2025-03-20 17:35:50 +01:00
sum.rs bugfix: math commands now return error with infinite range [#15135] (#15236) 2025-03-11 14:40:26 +01:00
variance.rs Math commands can work with bounded ranges and produce list of numbers (#15319) 2025-03-20 17:35:50 +01:00