Why was the decision made to use doubles instead of BigDecimals when
representing decimal data like prices? (I guess maybe this was something
inherited from the old Java wrapper, but then the same can be asked about
the Javfa wrapper). It seems like the BigDecimal exact representations woul=
d
suit the application better, as dealing with rounding problems associated
with doubles can be a pain. Of course arithmetic expressions are more
straightforward using doubles in Java, but you can always get around that b=
y
converting to doubles before doing any calculations. Sitting here next to =
a
stock ticker, I just saw that Ford is down .07000000000001 cents today.
That's what I'm talking about. Thoughts?
graham
|