0 votes

Hye everyone,
Would you know what the equivalent in godot is of this:

Good day,

Godot version V 3.4.3
in Engine by (86 points)

1 Answer

+1 vote

The equivalent is x - floor(x).

Another equivalent is fposmod(x, 1.0).

Both of the above also work if x = 0 or x < 0.

Source: GDScript built-in functions

Good day to you too.

by (180 points)

Thank you, It helped me a lot

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.