Formats the value of an integer to the specified precision.
JSV_commaFormat(expN [,delimiter])
n/a
The commaFormat function returns the string representation of a number formatted to the specified precision.
The commaFormat function uses the following arguments.
Argument | Description |
expN | The number that is to be formatted. |
This function ...
Martin Webb
http://www.irt.org/
n/a
The following lines of code
document.write(JSV_commaFormat(1)+'<BR>');
document.write(JSV_commaFormat(12)+'<BR>');
document.write(JSV_commaFormat(123)+'<BR>');
document.write(JSV_commaFormat(1234)+'<BR>');
document.write(JSV_commaFormat(12345)+'<BR>');
document.write(JSV_commaFormat(123456)+'<BR>');
document.write(JSV_commaFormat(1234567)+'<BR>');
document.write(JSV_commaFormat(12345678)+'<BR>');
document.write(JSV_commaFormat(123456789)+'<BR>');
document.write(JSV_commaFormat(1234567890)+'<BR>');
produce
Copyright © 1999-2000 Roaring Fork Software. All rights reserved.