Floating Point Blues

Floating Point Blues

Post by Lady of the BitMo » Sun, 28 Jun 1992 10:49:13

I'm running ESIX 4.0 on a 386/40 clone. I don't have a math coprocessor.
I was wondering why the DBL_MIN, in /usr/include/limits.h
is different from MINDOUBLE in /usr/include/values.h.

#define DBL_MIN         2.2250738585072014E-308  /* min decimal value of a "double"*/

#define MINDOUBLE       4.94065645841246544e-324

It really erked me when I saw this, because I'm working on a parser for
floating point numbers. And I don't know how to set the limits on the
exponent and the significand in lue of this anomaly.

To further obfuscate the matter, the following compiled passed okay:

void main( void )
reminder :
MINDOUBLE       4.94065645841246544e-324
DBL_MIN         2.2250738585072014E-308
        double f ;
        f = 5.0e-324 ;
        exit( 0 );



The compiler should do some complaining about this; in spite of the above
inconsistancies! n'est pas ?

Could somebody body enlighten me. I must be missing something ... or drunk!

Thankyou again,

Erica C. Ramsey


1. Weird-ass floating point problem on Blue Lightning

So, okay, I do a vanilla Slackware install.  Just A, D, and N.  When I
recompile the kernel, my floating point stuff goes kaflooey.  This is
definitely not a floating point hardware problem, because the Blue
Lightning processor doesn't *have* a numeric processor.  When I try

main() { printf("%f", 0.0); }

I get "P.PPPPPPPPP".  Anyone have any clues for me?


Crynwr Software   | Crynwr Software sells packet driver support | ask4 PGP key
11 Grant St.      | +1 315 268 1925 (9201 FAX)  | What is thee doing about it?
Potsdam, NY 13676 | Help Phil Zimmerman!  http://www.netresponse.com/zldf

2. Where to find Info on Andrew Tool Kit???

3. tunnel point to point vs physical point to point

4. UUCP over PPP?

5. Floating Point Exception

6. Apache and Caldera Open Linux 1.1

7. Linux 2.2.20 -> ps -u floating point error.

8. Apache 1.2.6

9. CoolThreads Servers, Floating Point and Oracle Database

10. float point exception on 3.0

11. Floating Point Exception error

12. Floating point exception: hardware failure?

13. floating point exceptions