From -8044203156476451249
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,fed4da4ddd62c919
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1995-01-01 01:05:33 PST
Newsgroups: comp.std.c++
Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!news2.near.net!bloom-beacon.mit.edu!world!miket
From: miket@world.std.com (Michael Trachtman)
Subject: Packed Decimal and C++
Message-ID: <D1pB3B.Eyo@world.std.com>
Organization: High Level Designs
X-Newsreader: TIN [version 1.2 PL2]
Date: Sun, 1 Jan 1995 00:37:59 GMT
Lines: 15

Will C++ ever have a standard set of types and operations for
packed decimal based numbers ? 

Such a set of types would be useful for writing base 10, arbitrary
precision, penny accuracy (i.e. no floating point round off errors)
programs.

The standard would not have to give the implementation.
It would just give the class declaration together with a sample
implementation. This would not require new keywords, since it would
be a class library. However, a compiler vendor would be free
to implement it internally, and generate high quality assembler
on those machines that have hardware support for Packed decimal.

Michael T.


