Closed sffc closed 3 years ago
Current APIs:
parseInt()
Number.prototype.toString()
BigInt.prototype.toString()
However, I cannot find a built-in function to parse a string to a BigInt with an arbitrary radix. Stack Overflow seems to agree.
Worth including in this proposal?
(Follow-up to #5)
See also: https://github.com/tc39/proposal-number-fromstring
Yes, I think that would probably be out of scope of this particular proposal, and best left to @mathiasbynens’s proposal (I want that proposal a lot!), but thank you for raising it.
Current APIs:
parseInt()
parses strings to Number with an arbitrary radix.Number.prototype.toString()
prints a Number to a string with an arbitrary radix.BigInt.prototype.toString()
prints a BigInt to a string with an arbitrary radix.However, I cannot find a built-in function to parse a string to a BigInt with an arbitrary radix. Stack Overflow seems to agree.
Worth including in this proposal?
(Follow-up to #5)