Jump to content
Search Community

Snap function - Issue

antoox test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

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 :)

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...