Hi - I’m converting an algorithm from mat lab, and it’s going well, but I’m getting an odd error. When I print the output with ?n[100], I get 0.054, but when I try and compare the value to 0.054, I don’t get the correct evaluation. A working example follows:
global n
for (private count = 0.004, count <= 4, count += 1/2000)
n.append(count)
endfor
? n[100] // output is 0.054
// now here is the problem
if (n[100] == 0.054)
? “Success”
endif
Thanks for your help