I want to check whether a decimal value is greater than or equal to the nearest low 0.05 value
Example
Value | Expected Nearest 0.05 value
11.10 | 11.05
11.11 | 11.10
11.12 | 11.10
11.13 | 11.10
11.14 | 11.10
11.15 | 11.10
I tried using the formula
parseFloat((Math.floor(value * 20) / 20).toFixed(2))
But it fails for 11.10 and 11.15. Using the above formula I get the output same as the value but the expected values are different. Which formula should I use to fix the above test cases.