Description

Subtracting .2 from a float seems to produce a float error, registering incorrect values during if checks.

Steps to Reproduce

1. Open Editor (any project)
2. Open character blueprint
3. Create the blueprint in attached image (set New Var 0 to an initial value of 1.0)
4. Compile
5. Press PIE, press 1 until "DONE" is printed to screen.

Results:

It takes 6 button presses to get "DONE" to print. The value of New Var 0 is -.2.

Expected:

"DONE" is printed after 5 presses, when New Var 0 is a value of 0.0

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Won't Fix
ComponentUE - Gameplay - Blueprint
Affects Versions4.11
CreatedFeb 1, 2016
ResolvedFeb 4, 2016
UpdatedJul 14, 2021