Updated utils.py to use Decimal instead of float in addressing previous PR by @mhluongo PR #30 .
Updated test for changes in to_base_unit, from_base_unit, and format_crypto_units functions.
Modified functions can take both numeric and string values as quantity of cryptocurrency and appropriately parse values to Decimal for processing.
@quentinlesceller please can you help with a review on this? I believe it addresses earlier concern over the use of Decimal instead of floats for unit conversions raised in PR #30 .
Updated utils.py to use Decimal instead of float in addressing previous PR by @mhluongo PR #30 . Updated test for changes in
to_base_unit
,from_base_unit
, andformat_crypto_units
functions.Modified functions can take both numeric and string values as quantity of cryptocurrency and appropriately parse values to Decimal for processing.