BUG: >= (Greater than or Equal to)
Preview 4 There seems to be a bug regarding the >=(Greater than or Equal to) option in blueprint as it seems to be acting like > (greater than) instead. I was attempting to reproduce the inventory tutorial from Unreal's youtube page, but i noticed that for some reason the energy seemed to not preform the jump action despite there being enough value for one final jump. In the top left, you can see using the print string that that every press is only subtracting .05 while the default value (can be seen mid left most) is set to 1.0. I cleared the node and replaced it with another >= but the result didn't change. I changed the Value to be >= to .0499 and it worked
I have looked into your problem and found the culprit, floating point precision errors result in slightly deviated floating values being compared. In this case the decremented value is equal to 0.0999999270 and the comparison value 0.100000001.
Relying on the floating point precision is something you will want to avoid in this case, however there is a Nearly Equal Blueprint node which takes into account an Error Tolerance. Combining this with a Greater Than node as seen in the attached image will give you the desired behaviour.
answered Jun 10 '15 at 02:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here