Received: by 10.224.78.209 with SMTP id m17mr1688867qak.3.1349204341716; Tue, 02 Oct 2012 11:59:01 -0700 (PDT) Received: by 10.52.93.132 with SMTP id cu4mr2177676vdb.14.1349204341574; Tue, 02 Oct 2012 11:59:01 -0700 (PDT) Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!l8no21605038qao.0!news-out.google.com!e10ni165558057qan.0!nntp.google.com!l8no22037444qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Tue, 2 Oct 2012 11:59:01 -0700 (PDT) In-Reply-To: <1w8fpsrdmn1y2.1nnw9tz9r53rr$.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=184.76.139.203; posting-account=v1lx5wkAAAALWYfGBkwkMb2guPF9cW2u NNTP-Posting-Host: 184.76.139.203 References: <07d13445-2a28-46cd-b9e2-609f4ee18e5a@googlegroups.com> <506a2ae0$0$289$14726298@news.sunsite.dk> <1w8fpsrdmn1y2.1nnw9tz9r53rr$.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <93feb84f-7da7-4ef2-9ffc-fcd3666d0485@googlegroups.com> Subject: Re: Regarding banking software From: bob smith Injection-Date: Tue, 02 Oct 2012 18:59:01 +0000 Content-Type: text/plain; charset=ISO-8859-1 Lines: 19 Xref: csiph.com comp.lang.java.programmer:19042 On Tuesday, October 2, 2012 11:20:03 AM UTC-5, Peter Duniho wrote: > On Tue, 2 Oct 2012 07:18:51 -0700 (PDT), bob smith wrote: > > > > > [...] > > >> Better just avoid float and double completely when dealing with money! > > > > > > And how will you be calculating interest ? > > > > With a proper decimal numeric format. E.g. BigDecimal. These exist > > precisely because of this specific issue. Don't you need to be able to raise to a floating point power for interest? (i.e. not an integer)