Bug #580
Add isn't working on arrays when the array element number is a variable and the number to be added is a float
Start date:
11/17/2020
Due date:
% Done:
0%
Estimated time:
Affected version:
Description
Add isn't working on arrays when the array element number is a variable and the number to be added is a float. Quite specific, but a major problem. Here's an example:-
#splashScreen:0
Dim A#(10)
A#(2)=10
m#=0.5
F=2
Print "A#(2)=";A#(2)
Print "F=";F
Add A#(F),0.5
Print "Add a float : Add A#(F),0.5 > A#=";A#(F)
Add A#(F),1.5
Print "Add 1.5, only whole integer is added : Add A#(F),1.5 > A#=";A#(F)
Add A#(2),0.5
Print "Add 0.5 with element identified as a number : Add A#(2),0.5 > A#=";A#(2)
wait key