Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!sun-barr!decwrl!sgi!arisia!leisner From: leisner@arisia.Xerox.COM (Marty Leisner) Newsgroups: comp.lang.c Subject: floating point constants Message-ID: <1925@arisia.Xerox.COM> Date: 25 Jul 89 21:00:13 GMT Organization: Xerox PARC Lines: 18 Is this a valid C program? gcc 1.35 handles it fine on a sun386i -- everything else I've tried won't compile these odd constants. /* This should print out inf -inf NaN */ main() { printf("%f\n", 1.0/0.0); printf("%f\n", -1.0/0.0); printf("%f\n", 0.0/0.0); } marty leisner leisner.henr@xerox.com