AvailabilityJavaScript 1.1; JScript 2.0, ECMAScript v1 Inherits from/OverridesOverrides Object.toString( ) Synopsisnumber.toString(radix) Arguments
ReturnsA string representation of the number. Throws
DescriptionThe toString( ) method of the Number object converts a number to a string. When the radix argument is omitted or is specified as 10, the number is converted to a base-10 string. If radix is any other value, this method returns an implementation-defined string. Netscape implementations and Microsoft implementations after JScript 3.0 honor the radix argument and return a string representation of the number in the specified base. See AlsoNumber.toExponential( ), Number.toFixed( ), Number.toLocaleString( ), Number.toPrecision( ) |