8-Gravel
March 5, 2025
Solved
Help with program
- March 5, 2025
- 1 reply
- 1392 views
Could someone please help me with what I am doing wrong here?
To JH_9781973..
You should also realise that:
1.

contains the value 2.54, because index counting starts at 0 (controlled by the value of system variable ORIGIN).
2.
The test

will always return False, because to test for NaN's you'd have to use the IsNan() function.
3.
Your loop is a bit silly, becasue you are testing the same thing over and over again.
The reason the result of your program is 5 (after applying TTokoro san's correction) is because p=6, if you set p:=3, the result of your program will be 2, because the program defines keep := x -1, and x runs from 0 to p.
4.
The top left corner of the matrix System (at index 0,0), contains the string value "Size", which is not a number but it is also not a NaN.
(a NaN is a special number, defined within the IEEE number format)
Success!
Luc
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.