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