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

Change USDC decimal places from 2 to 6 #1089

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

tagliala
Copy link
Contributor

Warning

This fix can introduce a breaking change

Before:

Money.new(100, "USDC").to_s
 => "1.00"

After:

Money.new(100, "USDC").to_s
 => "0.000100" 

Close #1081

@tagliala tagliala marked this pull request as draft March 22, 2024 12:12
This fix can introduce a breaking change

Before:
```
Money.new(100, "USDC").to_s
 => "1.00"
```


After:
```
Money.new(100, "USDC").to_s
 => "0.000100" 
```

Close RubyMoney#1081
@tagliala tagliala force-pushed the bugfix/1081-fix-usdc branch from 00aef06 to a0559b9 Compare March 22, 2024 13:14
@tagliala tagliala marked this pull request as ready for review March 22, 2024 13:16
@semmons99 semmons99 merged commit 7ff3695 into RubyMoney:main Apr 15, 2024
4 checks passed
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.

Incorrect Number of Decimals in USDC Currency
2 participants