Microsoft® JScript toString Method (Number) |
Language Reference Version 2 |
Converts a Number object or numeric variable into a string using the specified radix.
number.toString([ radix ]);The toString method syntax has these parts:
Part Description number A Number object or variable. Cannot be a numeric literal. radix An optional argument specifying the base to use when converting the number. Values between 2 and 16 inclusive are accepted. If not supplied, base 10 is used.
Due to syntax restrictions, the toString method cannot be used on numeric literals. Values must be assigned to variables first. For example, the following code is invalid:This code must be rewritten:
str = 1997.toString( );
var yr = 1997; str = yr.toString( );
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/language/jscript/js525.htm, 2KB, , updated: 1997/9/30 02:44, local time: 2024/11/8 15:08,
3.138.172.222:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/language/jscript/js525.htm"> toString Method (Number)</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.