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

Float and toString #122

Open
danielsvane opened this issue Aug 26, 2020 · 1 comment
Open

Float and toString #122

danielsvane opened this issue Aug 26, 2020 · 1 comment

Comments

@danielsvane
Copy link

danielsvane commented Aug 26, 2020

Floating an expression and then printing it using toString() adds dots after the 6th decimal point. This behaviour changed at some point.

Algebrite.float('1/10000000').toString() // 0.000000...

So my issue now is, how do I actually get the precision I had before?

@danielsvane
Copy link
Author

I kinda solved it myself by using my own build instead of the one on npm. I created a pull request here, where I just changed the number of decimal points to 20. A proper solution would be to have a setting that could be changed after init.

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

1 participant