-
Notifications
You must be signed in to change notification settings - Fork 23.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds rounding methods that already exit in python: - DOWN: will alway round towards 0 - UP: will alway round away from 0 - HALF-DOWN: will round to the closest number with ties going towards zero - HALF-EVEN: will round to the closest number with ties going to the closest even number - HALF-UP: will round to the closest number with ties going away from zero (this method was the one implemented before this commit) task-3918420
- Loading branch information
Showing
2 changed files
with
156 additions
and
40 deletions.
There are no files selected for viewing
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
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