Created
June 1, 2019 08:57
-
-
Save mbeltagy/9ac50b19cb9a4ccdbbcb9982163b424d to your computer and use it in GitHub Desktop.
Julia rounding up or down to the nearest integer mulitple
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
round_up(x,m::Integer)=ceil(Int,x/m).*m | |
round_down(x,m::Integer)=floor(Int,x/m).*m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment