Answers for "how to round value nearst integer js"

4

javascript round to nearest 10

var rounded = Math.round(number / 10) * 10
Posted by: Guest on May-20-2020
0

js number round to each 15

Math.ceil(n / 15) * 15
// 3 -> 15, 22 -> 30 etc.
Posted by: Guest on January-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language