Skip to content

Conversation

frier17
Copy link
Contributor

@frier17 frier17 commented Jul 27, 2023

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.

@frier17
Copy link
Contributor Author

frier17 commented Jul 29, 2023

@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 .

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant