You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have started using bignumber.js for a project. I needed to do some math that involved the use of Pi in one of the equations. I had to construct a BigNumber for Pi myself and I wonder if it would make more sense to have this (and possibly other standard values) built-in?
Creating the Pi value wasn't straightforward either.
I tried BigNumber(Math.PI); but that gives an error because it has more than 15 significant digits.
This forced me to do something like BigNumber(Math.PI.toFixed(10));.
Seems like it would just be easier if we could do BigNumber.PI;.
The text was updated successfully, but these errors were encountered:
I have started using bignumber.js for a project. I needed to do some math that involved the use of Pi in one of the equations. I had to construct a BigNumber for Pi myself and I wonder if it would make more sense to have this (and possibly other standard values) built-in?
Creating the Pi value wasn't straightforward either.
I tried
BigNumber(Math.PI);
but that gives an error because it has more than 15 significant digits.This forced me to do something like
BigNumber(Math.PI.toFixed(10));
.Seems like it would just be easier if we could do
BigNumber.PI;
.The text was updated successfully, but these errors were encountered: