[fpc-pascal] Division by Zero

Michael Fuchs freepascal at ypa-software.de
Tue Aug 23 08:57:40 CEST 2011


Hello,

   WriteLn(FloatToStr(100 / 0));

This code prints on the screen "+Inf", but I think it should be "NaN".
Is this a bug or a special case in computer arithmetic?


thx
Michael



More information about the fpc-pascal mailing list