[fpc-devel] Invalid floating point operation - roundto

tomek at ump.edu.pl tomek at ump.edu.pl
Fri Feb 22 13:30:06 CET 2013


Hi, I've problem with roundto function (fpc 2.6.0).

s1,s2: extended;

 s1:=291.022;
 s2:=roundto(s1,-30);   //TRoundToRange = -37..37;

give me Invalid floating point operation.

I see that roundto goes to single instead of extended. But why ?


Thanks,
Tomek



More information about the fpc-devel mailing list