-
Notifications
You must be signed in to change notification settings - Fork 446
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
Support for digital currencies #79
Comments
Merged the PR. In the 3.0 release, it will be easier to use your own currencies. |
Thanks! |
Bitcoin has 8 decimal places and the maximun amount available will be 21 millions (when bitcoin mining ends). Decimal places of bitcoins are called "satoshis". 21 millions converted to satoshis would be: 21.000.000 * 10^8 which is greater than max integer in 32-bit system (2.147.483.647). Therefore, it is not sufficient to add BTC to currencies list. I have read in this issue: With int type max value (32 bit system), bitcoin amount would be 21.47483648 satoshis which is a very small amount. Could bitcoin be used with that BigMoney class? |
Could be possible to use DecimalN like this: |
Add digital currencies to currencies.php array (at least bitcoin).
The text was updated successfully, but these errors were encountered: