You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
due to integer division. The simulations shows the expected float values. A fix would be to use Random(100) / 100.0, I'll provide a patch for this soon
The text was updated successfully, but these errors were encountered:
Andy1978
pushed a commit
to Andy1978/openroberta-lab
that referenced
this issue
Mar 12, 2024
Random(100) / 100 always evaluates to 0 due to integer division.
The provided patch forces a floating point division.
Tested on NXT with nbc 1.2.1.r4 and original Lego firmware 1.29
Random(100) / 100 always evaluates to 0 due to integer division.
The provided patch forces a floating point division.
Tested on NXT with nbc 1.2.1.r4 and original Lego firmware 1.29
Random(100) / 100 always evaluates to 0 due to integer division.
The provided patch forces a floating point division.
Tested on NXT with nbc 1.2.1.r4 and original Lego firmware 1.29
Following sketch
translates to
which always shows
due to integer division. The simulations shows the expected float values. A fix would be to use
Random(100) / 100.0
, I'll provide a patch for this soonThe text was updated successfully, but these errors were encountered: