From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 28 Oct 1995 06:40:54 -0400 From: dhog@plan9.cs.su.oz.au dhog@plan9.cs.su.oz.au Subject: alef fp bug on 386 Topicbox-Message-UUID: 30d100e6-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19951028104054.c85-aIUQKgaQYzw6B5AuKDYlf_6tgaYd328qWmbm6zI@z> The following alef program prints the wrong answer on a 386 architecture machine (actually a pentium...). ---------------- #include void main() { float x, y; x = 3.0; y = 5.0; if (x > y) print("%f > %f\n", x, y); else print("%f <= %f\n", x, y); } ---------------- Here's the output on a pentium: term% 8.out 3.000000 > 5.000000 and on a mips: cpu% v.out 3.000000 <= 5.000000 (that's more like it!). Does anyone know why?