I see some inconsistency in the readme and the spec draft, let's clarify some edge cases.
NaN - it's a valid value for the number type, a valid output for Number#toString, but it's not a number - should it be parsed?
Infinity - almost the same.
-0 is a valid number, but not a valid output for Number#toString, should it throw?
Should something like Number.fromString('20000000000001', 16) throw an error? It's a valid mathematical number, but it can't be represented in the number type / Number#toString.
I see some inconsistency in the readme and the spec draft, let's clarify some edge cases.
NaN- it's a valid value for thenumbertype, a valid output forNumber#toString, but it's not a number - should it be parsed?Infinity- almost the same.-0is a valid number, but not a valid output forNumber#toString, should it throw?Should something like
Number.fromString('20000000000001', 16)throw an error? It's a valid mathematical number, but it can't be represented in thenumbertype /Number#toString.