Download

Greater than Equal To node not working as expected

Hi Folk,

I just started learning UE4 blueprint, and very new to both UE4 and Blueprint.

I am trying to gradually reduce a value of a variable form 1.0 to 0.0 (in steps of 0.1 every second using timer.) I am using greater than and equal to node, the comparison works fine till the value is greater than 0.1 and after that it returns false even though both values are 0.1.

In short it is working like** “Greater Than”** instead of “Greater Than Equal To”.

Please see attached debugger screen withe values. Any ideas what is going wrong? is it related to floating point precision? Or have done something wrong?

Unreal Engine Version: Version: 4.24.1-10757647+++UE4+Release-4.24

TIA!

UE4_GTEQ.PNG

This is waiting for moderator approval since last 10 days, can someone please do the needful?