Error in numerical constants with {$IEEEERRORS ON}
Original Reporter info from Mantis: GameHunter
-
Reporter name:
Original Reporter info from Mantis: GameHunter
- Reporter name:
Description:
In the following unit all the declared constants are within range of double type.;
However there is a range chekh error at declaration of t64.
This error takes place with {IEEEERRORS ON} and doesn't take place with {
IEEEERRORS OFF}
{$IEEEERRORS ON}
{$apptype console}
Program TestNumbers;
Const
t1 = 2.0;
t2 = t1*t1;
t4 = t2*t2;
t8 = t4*t4;
t16 = t8*t8;
t32 = t16*t16;
t64 = t32*t32; (* Here is the error: range check error while evaluating constants *)
t128 = t64*t64;
t256 = t128*t128;
t512 = t256*t256;
Var
x:double;
Begin
x:=t512;
writeln(x);
End.
Mantis conversion info:
- Mantis ID: 37377
- Version: 3.2.0