Hello everyone. I am a beginner to unreal engine 5 and have encountered a problem with the “for loop with break”. As shown in the picture above, when I execute, my output log prints 0 to 59. This is if I convert pin from integer 15 to double precision float 15.0. When I convert the pin back to integer 15, the output log prints 0 to 52. Why is this the case? Is there some bug in my settings?
Hi there!
From the looks of it, it sounds like int / int = floor(int) - and int / float = round(float) to integer
So 59 / 15 = 3.93, but if floored, it’s still 3, and is still lower than your bool check!
So I think it’s normal behavior.
To be honest, for division, I would highly recommend always doing float / float, and then control the output to decide if the result is rounded, floored or ceiled!