Can I ask what determines the precision of floating point calculations are done in? It seems that fpc treats (for example, with J declared as integer)

1/sqrt(J+1.0) as single

but

1/sqrt(J+1) as double

which seems counter-intuitive. In FORTRAN I can force double precision evaluation with sqrt(J+1.0D0) but there is no equivalent idea of a double constant in Pascal.

Colin
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to