Re: [Quickfix-developers] [qfj] double and not BigDecimal?
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-03-16 21:21:13
|
Did QuickFIX actually return this value to you or did you do some calculations on it before seeing this price? --oren Graham Miller wrote: > 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 would 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 by 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 > |