mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 05:13:56 +01:00
7fb48b9a2f
# 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. |
||
---|---|---|
.. | ||
avg.rs | ||
median.rs | ||
mod.rs | ||
round.rs | ||
sqrt.rs | ||
sum.rs |