Snap function - Issue in GSAP Posted May 23, 2022 Hi there, I just came across a small issue related to the gsap.utils.snap function (gsap version 3.10.4): gsap.utils.snap(0.01, 0.29); // Returns 0.28 instead of 0.29 I know that I could use other ways to get float number with 2 precision points but this function is very handy
Snap function - Issue
in GSAP
Posted
Hi there, I just came across a small issue related to the gsap.utils.snap function (gsap version 3.10.4):
I know that I could use other ways to get float number with 2 precision points but this function is very handy