niteshpatel/ministocks

Refactor - store incoming prices as BigDecimals

Opened this issue · 0 comments

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

.