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

How i can turn off the scientific notation for results? #43

Closed
Frietziek opened this issue Sep 12, 2015 · 2 comments
Closed

How i can turn off the scientific notation for results? #43

Frietziek opened this issue Sep 12, 2015 · 2 comments

Comments

@Frietziek
Copy link

Hi, first i have to say my congratulations for your project, very god job man. I am mading a simple calculator (my first Android app), and i have issues with the notation of results:
For example, if i do "10+10" instead of give me "20" as result it give me "2E+1".

You know how i cant fix it?

PD: sorry for my bad english

@uklimaschewski
Copy link
Collaborator

Thank you, you are welcome.
The scientific notation is not produced by EvalEx, it is a result of the toString() method of the BigDecimal class.
You can use the toPlainString() method on the BigDecimal result to avoid the scientific notation.

@Frietziek
Copy link
Author

Thanks a lot men! Its work fine now :)

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