c++ - float.h p.p values
- comeau panix.com (Greg Comeau) Jan 12 2002
- "Walter" <walter digitalmars.com> Jan 12 2002
- comeau panix.com (Greg Comeau) Jan 12 2002
- comeau panix.com (Greg Comeau) Jan 12 2002
- "Walter" <walter digitalmars.com> Jan 12 2002
- "Walter" <walter digitalmars.com> Jan 12 2002
Your float.h uses many floating point values with a p notation. Would you happen to have those values handy in non-p form? -- Greg Comeau What's next: additional Windows backends and 'export'! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Jan 12 2002
They're all the same values everyone else uses <g>. Alternatively, you can just printf() them out. -Walter "Greg Comeau" <comeau panix.com> wrote in message news:a1pkkb$832$1 panix3.panix.com...Your float.h uses many floating point values with a p notation. Would you happen to have those values handy in non-p form? -- Greg Comeau What's next: additional Windows backends and 'export'! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Jan 12 2002
In article <a1q1pf$1arq$3 digitaldaemon.com>, Walter <walter digitalmars.com> wrote:They're all the same values everyone else uses <g>. Alternatively, you can just printf() them out. -Walter
I did, but just wanted to check. Also, for some reason, I can't get the values for the long doubles. What would the printf be for LDBL_EPSILON, LDBL_MAX, and LDBL_MIN? %Lf didn't do anything that seems reasonable. -- Greg Comeau What's next: additional Windows backends and 'export'! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Jan 12 2002
In article <a1q2v1$ph1$1 panix3.panix.com>, Greg Comeau <comeau comeaucomputing.com> wrote:In article <a1q1pf$1arq$3 digitaldaemon.com>, Walter <walter digitalmars.com> wrote:They're all the same values everyone else uses <g>. Alternatively, you can just printf() them out. -Walter
I did, but just wanted to check. Also, for some reason, I can't get the values for the long doubles. What would the printf be for LDBL_EPSILON, LDBL_MAX, and LDBL_MIN? %Lf didn't do anything that seems reasonable.
Hmm, playing some more, I *think* the problem was that #include <stdio.h> vs not having it produces different results. -- Greg Comeau What's next: additional Windows backends and 'export'! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Jan 12 2002
%lg should do the trick. "Greg Comeau" <comeau panix.com> wrote in message news:a1q2v1$ph1$1 panix3.panix.com...In article <a1q1pf$1arq$3 digitaldaemon.com>, Walter <walter digitalmars.com> wrote:They're all the same values everyone else uses <g>. Alternatively, you
just printf() them out. -Walter
I did, but just wanted to check. Also, for some reason, I can't get the values for the long doubles. What would the printf be for LDBL_EPSILON, LDBL_MAX, and LDBL_MIN? %Lf didn't do anything that seems reasonable. -- Greg Comeau What's next: additional Windows backends and 'export'! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Jan 12 2002
"Greg Comeau" <comeau panix.com> wrote in message news:a1pkkb$832$1 panix3.panix.com...Your float.h uses many floating point values with a p notation. Would you happen to have those values handy in non-p form?
I use the p values to avoid any problems with roundoff errors in the string->float conversion.
Jan 12 2002









comeau panix.com (Greg Comeau) 