Godot: Add nearly equal for floats

Created on 16 Sep 2018  路  3Comments  路  Source: godotengine/godot

Nearly equal is a very useful tool for floats.

discussion feature proposal core

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_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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bojidar-bg picture bojidar-bg  路  3Comments

Spooner picture Spooner  路  3Comments

n-pigeon picture n-pigeon  路  3Comments

nunodonato picture nunodonato  路  3Comments

ducdetronquito picture ducdetronquito  路  3Comments