Article View: comp.std.c++
Article #3209Re: U.S. monetary unit.
From: Nathan Myers, http://www.cantrip...
Date: Fri, 02 Feb 1996 15:49
Date: Fri, 02 Feb 1996 15:49
23 lines
1890 bytes
1890 bytes
Max TenEyck Woodbury wrote: > The standard assumes that the unit of account is the cent or one hundreth > of a dollar. Other units of account may be used, including the mil or one > thousandth of a dollar. I suggest that there may be a requirement in some > applications for internal values to be held in mils while display values be > for some larger unit. > There may be similar problems with international currencies. The locale facets that deal with money are *only* concerned with display values. You can represent money in any way you want, but you communicate the values to the monetary facet in the display units. It promises to represent those (display) values exactly. (Actually, the standard makes no assumptions about monetary units, and you can't count on your vendor implementing a default of (e.g.) cents. If you want a U.S. locale, your (portable) code had better say so.) Nathan Myers ncm@cantrip.org http://www.cantrip.org/ <-- works now! [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
Technical Details
Message-ID:
<31121DBC.11F4@cantrip.org>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<4emnvr$ecu@news.duke.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: "Nathan Myers, http://www.cantrip.org/" <ncm@cantrip.org> Newsgroups: comp.std.c++ Subject: Re: U.S. monetary unit. Date: 2 Feb 1996 15:49:15 GMT Organization: The Cantrip Cooperative Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <31121DBC.11F4@cantrip.org> References: <4emnvr$ecu@news.duke.edu> NNTP-Posting-Host: taumet.eng.sun.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Nntp-Posting-Host: ncm.vip.best.com X-Mailer: Mozilla 2.0b6a (X11; I; SunOS 5.4 sun4m) X-Lines: 18 Content-Length: 977 Originator: clamage@taumet