Re: sorry .09 instead of .08



Fabien Bergeret wrote:
For instance, for $, calculations are made in cents, and display is done with amount/100 $ and amount%100 cents (small unit number = 2)

That's not going to work for negative quantities.

IIRC, various legal requirements for calculations will also require a couple more significant figures.

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.



Relevant Pages

  • Re: thread working memory and synchronized keyword
    ... cache or checks that you'll make later classically) then you can use objects using the final field semantics. ... Tom Hawtin ... Unemployed English Java programmer ...
    (comp.lang.java.programmer)
  • Re: Type inferencing
    ... extends Object&Serializable&Comparable>. ... Tom Hawtin ... Unemployed English Java programmer ...
    (comp.lang.java.programmer)
  • Re: Action Listener, Determing which button was pressed
    ... You will need a lot of buttons (which come in at a few K each, IIRC) for that to be a problem. ... Tom Hawtin ... Unemployed English Java programmer ...
    (comp.lang.java.programmer)
  • Re: safety of where =
    ... each individual statement should be atomic. ... Tom Hawtin ... Unemployed English Java programmer ...
    (comp.lang.java.databases)
  • Re: Ultralight threads
    ... Tom Hawtin ... Unemployed English Java programmer ...
    (comp.lang.java.advocacy)