nushell/crates/nu-command
juanPabloMiceli 7fb48b9a2f
Fix negative precision round with ints (issue #9049) (#9073)
# Description
Before this PR, `math round` ignores the input if it's an `int`. This
results in the following behaviour:
```
> 123 | math round --precision -1
123
```
When the correct result is 120.

Now `int values` are converted to `float values` before actually
rounding up the number in order to take advantage of the float
implementation.

Fixes #9049.
2023-05-03 23:07:32 +02:00
..
assets refactor html module (#5246) 2022-04-20 08:50:14 -05:00
src Fix negative precision round with ints (issue #9049) (#9073) 2023-05-03 23:07:32 +02:00
tests Fix negative precision round with ints (issue #9049) (#9073) 2023-05-03 23:07:32 +02:00
Cargo.toml Add --redirect-combine option to run-external (#8918) 2023-04-28 07:55:48 -05:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00