Re: sorry .09 instead of .08



James Westby wrote:

The problem is that you can't use floating point arithmetic (doubles) to do precise arithmetic. If possible then you should try using fixed point arithmetic. e.g.

It's probably better to use BigDecimal in most situations.

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: sorry .09 instead of .08
    ... various legal requirements for calculations will also require a couple more significant figures. ... Tom Hawtin ... Unemployed English Java programmer ...
    (comp.lang.java.help)