javascript-bignum icon indicating copy to clipboard operation
javascript-bignum copied to clipboard

Suggestion for behavior of SchemeNumber.maxIntegerDigits.

Open trusktr opened this issue 11 years ago • 0 comments

Setting this value to allow exponentiation to be bigger is a nice feature.

My suggestion is to let users assign schemeNumbers 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.

trusktr avatar Dec 05 '13 22:12 trusktr