Algebrite icon indicating copy to clipboard operation
Algebrite copied to clipboard

Float and toString

Open danielsvane opened this issue 5 years ago • 1 comments

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 avatar Aug 26 '20 13:08 danielsvane

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.

danielsvane avatar Aug 30 '20 09:08 danielsvane