...
round(0.5) == 0, round(1.5) == 2, rouround(2.5) == 2
Code Block language py # Hack def rounder(number, ndigits=None): return round(number + 1e-8, ndigits)
...
...
round(0.5) == 0, round(1.5) == 2, rouround(2.5) == 2
Code Block | ||
---|---|---|
| ||
# Hack def rounder(number, ndigits=None): return round(number + 1e-8, ndigits) |
...