Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated utils.py and tests for using Decimal instead of float #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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