www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - float.h p.p values

↑ ↓ ← comeau panix.com (Greg Comeau) writes:
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
"Walter" <walter digitalmars.com> writes:
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
↑ ↓ comeau panix.com (Greg Comeau) writes:
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
→ comeau panix.com (Greg Comeau) writes:
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
→ "Walter" <walter digitalmars.com> writes:
%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
→ "Walter" <walter digitalmars.com> writes:
"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