[Quickfix-developers] [qfj] double and not BigDecimal?
Brought to you by:
orenmnero
|
From: Graham M. <gra...@gm...> - 2006-03-16 20:12:28
|
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 |