Topic: U.S. monitary unit.


Author: Max TenEyck Woodbury <mtew@cds.duke.edu>
Date: 1996/01/30
Raw View
    I was just going through the draft standard locale section and noticed what
might be a problem.

    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.

    This problem would be handled easily if there were a monitary facet property
that specified the size of the display unit in accounting units.  This would
have to be at least 'int' sized to allow accounts kept in mils to display
whole dollars typically seen in tax preperation.  In might be advisable to make
it 'double' to take care of government economists who deal in 10^9 or 10^12
dollar hunks.

        Max
---
[ 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://dogbert.lbl.gov/~matt/std-c++/policy.html. ]