From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fee8802cc3d8334d X-Google-Attributes: gid103376,public X-Google-Thread: 10a146,fee8802cc3d8334d X-Google-Attributes: gid10a146,public From: jerry@jvdsys.stuyts.nl Subject: Re: Ada and Java. different behaviour. casting long to int problem. Date: 1999/06/15 Message-ID: #1/1 X-Deja-AN: 490014236 Sender: jerry@stuyts.nl (Jerry van Dijk) References: <7jt2c0$vrb@drn.newsguy.com> <7k57vb$1ipf@drn.newsguy.com> <7k5kef$1ghi@news1.newsguy.com> Organization: * JerryWare HQ *, Leiden, Holland User-Agent: tin/pre-1.4-980226 (UNIX) (Linux/2.2.9 (i586)) Newsgroups: comp.lang.ada,comp.lang.java.programmer Date: 1999-06-15T00:00:00+00:00 List-Id: Samuel Mize wrote: : No, it won't, because anyone who can overflow a bank's accounting : software can buy whatever verdict he wants. :-) Perhaps, but I have seen it happening, though not on private accounts, but in foreign currency transfers (think like : General Motors paying the bill in the yen...). Of course, there was no overflow but an error. Banks use fixed point arithmatic. It is actually a reason why PL/I is still in use, Cobol, like Ada, garantees 18 digits accuracy and that sometimes is not enough. IBM's PL/I compiler offers 22 digit accuracy for it's fixed point arithmatic. Ahh, well, back to Ada... -- -- Jerry van Dijk | Leiden, Holland -- Team Ada | jdijk@acm.org -- see http://stad.dsl.nl/~jvandyk