This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11099] wrong values for numeric_limits<double>
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2003 14:30:07 -0000
- Subject: [Bug libstdc++/11099] wrong values for numeric_limits<double>
- References: <20030605085239.11099.franky.backeljauw@ua.ac.be>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11099
------- Additional Comments From gdr@integrable-solutions.net 2003-06-06 14:30 -------
Subject: Re: wrong values for numeric_limits<double>
"franky.backeljauw@ua.ac.be" <gcc-bugzilla@gcc.gnu.org> writes:
[...]
| > | Using the definition,
| > | min_exponent should for instance be -1022 - 52 or -1074 for the double type,
| > ^^^^^
| >
| > Where is that coming from?
| >
| > -- Gaby
|
| Well, that's actually because a double has 53 bits.
You didn't get the arithmetic and the model right.
[...]
| which are the same values as in the numeric_limits case. Maybe this is
| just not stated correctly in the manual
I can't see in which ways they are not stated correctly in the manual.
| - but then again, the same values
| and the same information are also found in Microsoft's Visual Studio
| documentation. So, what should it be?
|
| One small question to end my e-mail: where can I find a complete reference
| for the libstdc++ standard library?
The C++ standard is the normative reference. You might also want to
consult LIA-1 and the C standard.
-- Gaby