Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

rounding up a number so that it is divisible by 5 javascript

function round5(x)
{
    return Math.ceil(x/5)*5;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rounding #number #divisible #javascript
ADD COMMENT
Topic
Name
2+9 =