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

Long decimal input 0.9999... results in increasing value #249

Open
adsche opened this issue Mar 22, 2022 · 3 comments
Open

Long decimal input 0.9999... results in increasing value #249

adsche opened this issue Mar 22, 2022 · 3 comments
Labels

Comments

@adsche
Copy link

adsche commented Mar 22, 2022

Hey,
first of all, I love the simple mobile tools! Amazing job all around!

This bug might be related to #195, but I'm not sure:

If you type a long decimal number starting with 0.999..., as soon as the number is long enough so that the font size changes, the number increases by one with each newly input digit.

e.g. for me, 0.9999999999, add another 9 => 1.9999999999; another 9 => 2.9999999999 and so on.

This doesn't seem like just "accuracy loss" as #195, since it becomes increasingly far off, maybe they are related.

Keep up the great work, cheers!

@tibbi
Copy link
Member

tibbi commented Mar 22, 2022

what app version are you using?

@adsche
Copy link
Author

adsche commented Mar 22, 2022

Sorry, I used to know how to write bug reports 😅

It's 5.7.2 (via fdriod) on Android 10.

@tibbi tibbi added the bug label Mar 22, 2022
@rsb-23
Copy link
Contributor

rsb-23 commented Jun 18, 2022

I have debugged this issue and #195 issues.
Cause : Whenever the number crosses the size of "Double" (64bit), the app can't handle the calculation and formatting.
location : numberhelper > addGroupingSeparators > toDouble method.
Suggestion : Add a validation, and return "Out of range" message/error

**Probably you already knew this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants