Skip to content
Advertisement

Round a number to nearest .25 in JavaScript

I want to convert all numbers to the nearest .25

So…

JavaScript

Advertisement

Answer

Here’s an implementation of what rslite said:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement