When I run the program below in Turbo Pascal, I get the fifth power as 30973432405238707, but in FP 2.6.4 I get 30973432405238700.
In general I don't seem to get the number of significant digits that I would expect for large numbers like these.
Have you any idea why this discrepancy occurs? I am using Windows 7 Professional and use the console IDE.
{$R+}
PROGRAM BUG3;
USES
CRT;
VAR
I_comp: COMP;
I_comp5: COMP;
BEGIN
CLRSCR;
I_comp:=1987;
I_comp5:=I_comp*I_comp*I_comp*I_comp*I_comp;
WRITELN(I_comp:4:0,' to the fifth power is ',I_comp5:17:0);
READLN;
END.