[Tutor] How to correct decimal addition.

Alan Gauld alan.gauld at btinternet.com
Sat Jan 25 22:47:14 CET 2014


On 25/01/14 21:19, Keith Winston wrote:
> On Sat, Jan 25, 2014 at 3:57 AM, spir <denis.spir at gmail.com> wrote:
>> Note: AFAIK most financial software use integers for this reason and to
>> avoid (or control) rounding errors.
>
> I don't think this is true

I can't speak for the general case but the only major financial app I've 
worked on (a mainframe billing system in COBOL) was done in pennies. It 
was a major rewrite of a legacy system  for the
"Millenium Bug". (It used the year 00 as a special case for
terminated accounts!! Amongst other foibles)...

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list