C13) Problem with floating point expressions in connection with repetitions
Description
This article is from the FAQ, by with numerous contributions by
others.
C13) Problem with floating point expressions in connection with repetitions
The compiler does not generate correct code when floating point expressions
are used in the calculation of repetition ranges as in:
R: [FR1] ...
do ...
FR2->R.extend
FR3->R.new
where FR1, FR2 and FR3 are expressions yielding a floating point value. The
compiler should convert these floating point values into integer values, but
fails in doing so.
You can get around the error by explicitly converting the expression to an
integer value. If "I" is an integer variable, then the following will work:
R: [FR1->I] ...
do ...
FR2->I->R.extend
FR3->I->R.new
This problem have been fixed in version v5.1 of the compiler.
 
Continue to: