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

Problem with exponential notation #5

Closed
titoworlddev opened this issue Apr 11, 2021 · 2 comments
Closed

Problem with exponential notation #5

titoworlddev opened this issue Apr 11, 2021 · 2 comments

Comments

@titoworlddev
Copy link

titoworlddev commented Apr 11, 2021

When I put:
1 * 10 ^ 50
The result is: -5,376,172,055,173,529,600
When it really should be: 1e + 50
Or even if I put:
2000000000000000000*5
the result is: -8.446.744.073.709.551.616
When it should be: 10.000.000.000.000.000.000

I know that for most people it is not common to do an operation of such a large number, but it gives the feeling that when large operations are made it gives errors, it would be good if you fix it please, since I am making a calculator and I do not want him to give me errors of this type.
Also I was testing the math_expresions package and it does it well but I prefer this one as it has more options like sinh, etc ...
If you could update that would be awesome.

@ram6ler
Copy link
Owner

ram6ler commented Apr 12, 2021

Thanks for raising that! I think you're right – it's better to avoid working with the integer type in most use cases for this library.
In any case, this should work the way you want it to as of version 0.8.12.

@ram6ler ram6ler closed this as completed Apr 12, 2021
@titoworlddev
Copy link
Author

Hello @ram6ler.
Now it works perfect thank you very much for such a quick response, that helps me a lot and it will surely help more people who use this very good package. Thanks again :)

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