www.digitalmars.com         C & C++   DMDScript  

c++.dos.32-bits - long doubles

reply rvw <rvw_member pathlink.com> writes:
1.  Do all long double constants have to have an "L" suffix?  

2.  It appears that none of the rounding functions work on long doubles (rint,
nearbyint, round, trunc, ...).
Dec 22 2004
parent "Walter" <newshound digitalmars.com> writes:
"rvw" <rvw_member pathlink.com> wrote in message
news:cqdsnt$22ui$1 digitaldaemon.com...
 1.  Do all long double constants have to have an "L" suffix?

Yes.
 2.  It appears that none of the rounding functions work on long doubles

 nearbyint, round, trunc, ...).

They should. But you posted this in the DOS32 group - and long doubles in the DOS32 memory model are the same as 64 bit regular doubles. To use the full 80 bit long doubles, use the WIN32 memory model (which is the default).
Dec 27 2004