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

Show more than 2 decimals #2

Open
Crypto-Blockchain opened this issue Jul 1, 2018 · 2 comments
Open

Show more than 2 decimals #2

Crypto-Blockchain opened this issue Jul 1, 2018 · 2 comments

Comments

@Crypto-Blockchain
Copy link

Greetings, the plugin continues to work very well, but would it be possible to improve it so that it shows the 8 decimal units that the btc handles?

that is, for example, if I enter 10 dollars, the value in btc is not enough to be displayed: 0.00

The value must be currently above 40 dollars to reach to see the value in btc: 0.01

This can be solved by letting you see the remaining decimals of the btc.

And to be perfect, you just have to do the front part to interact with the plugin from the administration, even though this, it works very well.

@dev-101
Copy link

dev-101 commented Jul 1, 2018

Hi, you can replace osc_locale_num_dec() parameter with custom number of decimals (e.g. 4 or 5 or 6):

https://github.com/osclass/plugin-bitcoins/blob/master/bitcoins/index.php#L44

@Crypto-Blockchain
Copy link
Author

It works perfect, thank you very much for your time!

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

No branches or pull requests

2 participants