-
Notifications
You must be signed in to change notification settings - Fork 47
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
Setting decimals to zero still shows a decimal point and digit #34
Comments
@hooman-limouee Ah yes, maybe the problem is on this line. purecounterjs/js/purecounter.js Line 235 in a6d97cf
setting the decimals to 0 will not possible because of this line. I'll find another way to fix this issue... thanks for your report.
|
Can you please show me how you're setting the decimal to 0? |
I'm looking for setting up floating point number a counter value, such as 0.84 . , 10.34 without any currency or file size . Is there any option ? I couldn't find anything. |
@rasselmrh You can just intialize specific Or, you can set the value on For decimals or float value, use period/dots |
using purecounter_vanilla.js. I have a weird issue when using value 999.9999 below it will output 999999 missing the point but when using a thousand(8200.2055.) value with decimal works fine but output will be 8200.2055 |
Custom initialization doesn't help. For example, I'm using the number "90.5" but it just displays as "905" with 1 decimal and as "91" with 0. |
An strange behavior here is when you set
currency
symbol which I prefer to use a+
sign and setting0
for decimals, still you see a decimal point and a digit after it. Even in the documentation it's clearly obvious that it prints the result like$9.0k
.What I'm wondering is that, is it zero decimals mean a digit after decimal point?
The text was updated successfully, but these errors were encountered: