Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-08

Division by Zero

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Fuchs

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