1 // Copyright 2020 Rick Waldron. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 esid: sec-number.prototype.tostring
7 Calling toString(radix) (14)
9 Return the String representation of this Number value using the radix specified by radixNumber. Letters a-z are used for digits with values 10 through 35. The precise algorithm is implementation-defined, however the algorithm should be a generalization of that specified in sec-numeric-types-number-tostring.
12 assert.sameValue(0..toString(14), "0");
13 assert.sameValue(1..toString(14), "1");
14 assert.sameValue(NaN.toString(14), "NaN");
15 assert.sameValue(Infinity.toString(14), "Infinity");