I have a function from excel that I use: =FLOOR(value,0.5)
With this function, I round DOWN to the nearest half value. For example:
10.55 becomes 10.5 10.99 becomes 10.5 10.2 becomes 10
Etc.
Is there an equivalent in javascript? I know that Math.floor () will round down to the nearest integer. However, does anyone know of a good way to round down to the nearest 0.5 instead?
Thank you in advance