[Cfp-interest] D/d double type floating point suffix

Rajan Bhakta rbhakta at ca.ibm.com
Mon Jul 30 07:55:55 PDT 2012


Packed decimal values in user source are of the form "<whole 
part>.<fractional part>d" so yes, 1.00d is a valid packed decimal number 
in IBM's C compiler.

Regards,

Rajan Bhakta
z/OS XL C/C++ Compiler Technical Architect
ISO C Standards Representative for Canada
C Compiler Development
Contact: rbhakta at ca.ibm.com, Rajan Bhakta/Toronto/IBM
Telephone: (905) 413-3995



From:
"Fred J. Tydeman" <tydeman at tybor.com>
To:
"CFP" <cfp-interest at ucbtest.org>
Date:
07/30/2012 10:51 AM
Subject:
Re: [Cfp-interest] D/d double type floating point suffix
Sent by:
cfp-interest-bounces at oakapple.net



My understanding is that the 'd' suffix is used on packed decimal
constants.  In the hardware, they are integers.  But, in the
user's source code, can they look like floating-point numbers?
That is, would 1.00d be a valid packed decimal constant?

---
Fred J. Tydeman        Tydeman Consulting
tydeman at tybor.com      Testing, numerics, programming
+1 (775) 287-5904      Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.

_______________________________________________
Cfp-interest mailing list
Cfp-interest at oakapple.net
http://mailman.oakapple.net/mailman/listinfo/cfp-interest



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20120730/4a1e37ed/attachment.html 


More information about the Cfp-interest mailing list