c++ - float.h p.p values
- comeau panix.com (Greg Comeau) (7/7) Jan 12 2002 Your float.h uses many floating point values with a p notation.
-
Walter
(4/11)
Jan 12 2002
They're all the same values everyone else uses
. Alternatively, you c... - comeau panix.com (Greg Comeau) (11/13) Jan 12 2002 I did, but just wanted to check. Also, for some reason, I can't
- comeau panix.com (Greg Comeau) (9/17) Jan 12 2002 Hmm, playing some more, I *think* the problem was that
- Walter (4/17) Jan 12 2002 %lg should do the trick.
- Walter (4/6) Jan 12 2002 I use the p values to avoid any problems with roundoff errors in the
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. -WalterI 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: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?They're all the same values everyone else uses <g>. Alternatively, you can just printf() them out. -WalterI 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.
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:canThey're all the same values everyone else uses <g>. Alternatively, youjust printf() them out. -WalterI 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