Skip to reading
GDScript Programming & Godot

is_equal_approx()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page

Earlier edition reference / Current 0.86.4.0 property paths > p. 350

Code example
is_equal_approx(a: float, b: float) -> bool

Approximate floating-point equality/zero checks.

is_finite()#

Code example
is_finite(x: float) -> bool

Check finite, infinite or invalid numeric values.

is_inf()#

Code example
is_inf(x: float) -> bool

Check finite, infinite or invalid numeric values.

is_instance_id_valid()#

Code example
is_instance_id_valid(id: int) -> bool

Validate an instance ID or look up the live Object for that ID.

is_instance_valid()#

Code example
is_instance_valid(instance: Variant) -> bool

Check whether a Godot Object is still alive.

is_nan()#

Code example
is_nan(x: float) -> bool

Check finite, infinite or invalid numeric values.

is_same()#

Code example
is_same(a: Variant, b: Variant) -> bool

Check strict value/identity sameness; not an approximate numeric comparison.

is_zero_approx()#

Code example
is_zero_approx(x: float) -> bool

Approximate floating-point equality/zero checks.

Page 310 of 378Permalink
Go to page