User:Elderfleur/fround

From Fallen London Wiki
fround aims to implement scientific rounding as occurs within Fallen London, where a 5 rounds to the nearest even number instead of always rounding away from zero as the native round operator does.  fround currently drops trailing 0s even if they're within the acceptable number of decimal places.


The number 2.500 rounds to 2