False Compare, Bug

Hi,

i have 2 Floats with the same Values.

The Branch checkd is Float 1 Greater or Equal Float 2. Same Value and then a False ?

Unreal Engine 5.4

Joerg

Try with NearlyEqual
image

That Works, very Thanks…

Why doesn’t the other method work?

a Bug?

1 Like

Just behind some maths function node, it can happen they are casting from one form to another type and that where some decimal number might get changed (with a round up for eg).
Here an article for it: Solving the "floating point precision" problem with... floats? - DEV Community

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.