niteshpatel / ministocks

Android Stocks Widget
http://niteshpatel.github.io/ministocks
MIT License
53 stars 37 forks source link

Refactor - store incoming prices as BigDecimals #40

Open tmaverick opened 8 years ago

tmaverick commented 8 years ago

Prices should be stored as BigDecimals. The formatting of numbers to strings should be done elsewhere (currently in StockQuote)

  1. Add StockQuote.rawPrice : BigDecimal. This has the value of the raw data from source.
  2. Move formatting code to StockQuote.getPrice() - make it use priceBigDecimal.
  3. Remove StockQuote.price
  4. Move formatting code to another class

.