javascript-bignum
javascript-bignum copied to clipboard
Suggestion for behavior of SchemeNumber.maxIntegerDigits.
Setting this value to allow exponentiation to be bigger is a nice feature.
My suggestion is to let users assign schemeNumber
s or Infinity
to the value of SchemeNumber.maxIntegerDigits
to have better control over it.
For example, let users do things like:
SchemeNumber.maxIntegerDigits = Infinity;
or
SchemeNumber.maxIntegerDigits = SchemeNumber("100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");
A value of Infinity
would (obviously) mean no limit, while a schemeNumber
value would allow for limits larger than what can be specified with native JS values.