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
..
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-02-28 21:33:02 -08:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-02-05 22:17:46 +01:00
2023-04-01 12:53:58 +02:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-02-05 22:17:46 +01:00
2023-02-28 21:33:02 -08:00
2023-02-28 21:33:02 -08:00
2023-02-28 21:33:02 -08:00
2023-04-01 12:53:58 +02:00
2023-03-12 09:57:27 +01:00
2023-02-05 22:17:46 +01:00
2023-02-28 21:33:02 -08:00
2023-03-12 09:57:27 +01:00
2023-05-03 23:07:32 +02:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-02-28 21:33:02 -08:00
2023-02-28 21:33:02 -08:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00
2023-02-06 13:43:00 +01:00
2023-03-12 09:57:27 +01:00
2023-03-12 09:57:27 +01:00