ConradSelig / cliStocksTracker

A command line utility for tracking a stock market portfolio. Primarily featuring high resolution braille graphs.
Apache License 2.0
55 stars 14 forks source link

Table values should be buffered to n decimal places. #37

Open ConradSelig opened 3 years ago

ConradSelig commented 3 years ago

This is a string formatting problem more than a techincal one. All values in the table should be buffered out to include n decimal places.

If n=2 "14.0" -> "14.00" "235.6" -> "235.60" "5" -> "5.00"

There are some places in the table that use more than two decimal places, so decimals should be buffered out to match the rounding wherever needed.