🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Clark VERBRUGGE Fri, 11 Dec 1992 09:48
MINDOUBLE in gcc
#1531
Author: Clark VERBRUGGE
Date: Fri, 11 Dec 1992 09:48
29 lines
1078 bytes
I thought that MINDOUBLE was the smallest value a double
could hold. Yet when i compile the following program:

#include <values.h>

#include <math.h>

main()
{
        double d1,d2;

        d1 = MINDOUBLE;
        d2 = MAXDOUBLE;

        printf("Min=%lf\nMax=%lf\n",d1,d2);
}

I get a 'constant-out-of-range' warning for the
statement assigning MINDOUBLE to d1, and it prints
out "Min=0.000000".

Actually, cc does this as well (but it doesn't even acknowledge
that MINDOUBLE is out of range), so i'm not certain that
this is really a bug.

This is gcc version 1.37.1, running on a Sparc.

Clark Verbrugge
clump@cs.mcgill.ca
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads