Nearly equal is a very useful tool for floats.
It was already been proposed and I did a corresponding PR, but @reduz is declined it https://github.com/godotengine/godot/pull/17975
I have a PR open for that here: https://github.com/godotengine/godot/pull/18992 It needs reviewing.
Note that is_equal_approx does exist internally already, but my PR improves it, exposes it to GDScript, adds it to C#, and uses it in more places internally.
@akien-mga This can be closed now, I forgot to mark my PR as resolving this.
Most helpful comment
I have a PR open for that here: https://github.com/godotengine/godot/pull/18992 It needs reviewing.
Note that
is_equal_approxdoes exist internally already, but my PR improves it, exposes it to GDScript, adds it to C#, and uses it in more places internally.