Many answers to questions about precision float and double recommend using decimal for monetary amounts. This works because today all currencies are decimal, with the exception of MGA and MRO , and those that have 1/5 subunits are still decimal.
But what about software used in the US stock markets when prices were at 1/16 US dollar? The accuracy of binary data types would not be a problem, right?
Going back, how did British accounting software deal with pounds, shillings, and pence until 1971? Did their versions of COBOL have a PIC special offer for this? Have all the amounts been kept in retirement? How was decimalization handled?
decimal currency
dan04
source share