Something I noticed while writing a script to convert floats (in fortran and latex code) to FORM-readable expressions. I work around this by stripping the leading zeroes off, but I thought I would mention it here:
Leading zeroes in rational numbers produce an error when followed by more than a single digit.
Local test1 = 0001;
Local test2 = 00001;
Local test3 = 00010;
Local test4 = 00011;
Print +s;
.end
gives
Local test1 = 0001;
Local test2 = 00001;
Local test3 = 00010;
test.frm Line 3 --> Internal error in code generator. Unknown object: 10
Local test4 = 00011;
test.frm Line 4 --> Internal error in code generator. Unknown object: 11
It could be useful for the compiler to interpret float representations as rationals automatically, but that is a side issue.
Something I noticed while writing a script to convert floats (in fortran and latex code) to FORM-readable expressions. I work around this by stripping the leading zeroes off, but I thought I would mention it here:
Leading zeroes in rational numbers produce an error when followed by more than a single digit.
gives
It could be useful for the compiler to interpret float representations as rationals automatically, but that is a side issue.