From: Keh-Cheng Chu (kehcheng@netcom.com)
Date: 06/30/92


From: kehcheng@netcom.com (Keh-Cheng Chu)
Subject: Can your 386/387 or 486 handle 1.0/0.0?
Date: Tue, 30 Jun 1992 23:06:32 GMT

It seems that my 25 MHz 386/387 cannot handle floating point
exceptions correctly. Please try compiling the following code
with Gnu C under Linux and see what you get. My machine gives
the wrong answer 1.0000, while a Sun Sparcstation returns the
correct answer "Inf." If you also get "Inf" I'd be very
interested to find out about your motherboard's vendor/
manufacturer/chip set/bios, etc.

Thanks in advance.

#inclde <stdio.h>
main()
{
        double x=1.0, y=0.0;
        printf("%lf\n", x/y);
}