esolutionsone / timesheet-app

A button component for logging to and representing entries on a timesheet table
1 stars 1 forks source link

Step-misaligned time inputs result in weird rounding #181

Closed blingusblongus closed 2 years ago

blingusblongus commented 2 years ago

Now that the number input has a step of .25, putting in a number like 7.6 will result in 7.5833333333 in the box. Very unsure why.

One way to fix: Expand our enforceMaxMin() function to be a more general validator and round to the nearest multiple of .25.