Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!bin From: bin@primate.wisc.edu (Brain in Neutral) Newsgroups: comp.sys.mips Subject: MAX_FLT isn't? Message-ID: <898@uakari.primate.wisc.edu> Date: 16 Oct 89 21:45:33 GMT Organization: UW-Madison Primate Center Lines: 28 So what am I doing wrong here? test.c: # include # include main () { float f; f = FLT_MAX; printf ("%g %g\n", f, (float) FLT_MAX); printf ("%g\n", f - FLT_MAX); printf ("%f %f\n", f, (float) FLT_MAX); printf ("%f\n", f - FLT_MAX); } % cc test.c % a.out 3.40282e+38 3.40282e+38 -3.61471e+29 340282346638528860000000000000000000000.000000 340282346638528860000000000000000000000.000000 -361471124579617760000000000000.000000 Paul DuBois stewed-monkey-heads@primate.wisc.edu