fix: correct floating precision in snapValueToStep (#6113)
* fix: correct floating precision in snapValueToStep
* add test
---------
Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
Co-authored-by: Robert Snow <rsnow@adobe.com>
Co-authored-by: Reid Barber <reid@reidbarber.com>