Answers for "round number to the nearest 10 in jquery"

0

round till 2 digit in jquery

(10.8).toFixed(2); // "10.80"

var num = 2.4;
alert(num.toFixed(2)); // "2.40"
Posted by: Guest on June-08-2021
2

Javascript round number to nearest 5

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

Code answers related to "round number to the nearest 10 in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language