Answers for "how to round the number to 1dec place in js"

2

Javascript round number to nearest 5

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

round to nearest decimal javascript

round(12345.6789, 2) // 12345.68
round(12345.6789, 1) // 12345.7
Posted by: Guest on September-03-2020

Code answers related to "how to round the number to 1dec place in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language