Answers for "round off to the nearest 10 js"

C#
1

Javascript round number to nearest 5

function round5(x)
{
    return Math.ceil(x/5)*5;
}
Posted by: Guest on November-04-2020
0

Math.Round() rounds a number to the nearest whole number:

Math.Round(9.99);
Posted by: Guest on May-31-2021

Code answers related to "round off to the nearest 10 js"

C# Answers by Framework

Browse Popular Code Answers by Language