Created
July 23, 2014 22:46
-
-
Save lsfalimis/5e47ea695b7019d444f8 to your computer and use it in GitHub Desktop.
unbiased rounding, or statistician's rounding, or bankers' rounding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set n to the clipboard | |
# the default option used is `rounding to nearest` | |
# four decimal | |
(round (n * 10000)) / 10000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment