Created
September 1, 2016 00:46
-
-
Save guivazcabral/0458328a46b575f29950f870e94c8a00 to your computer and use it in GitHub Desktop.
roundInStepsOfFive
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
function roundInStepsOfFive(number) { | |
return Math.round(number / 5 ) * 5; | |
} | |
alert(roundInStepsOfFive(54)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment