This method will convert a number to a string and will select either a fixed or exponential notation according to the magnitude of the value being converted.
This would be useful where you have an arbitrary collection of values and don't want them presented in a ragged looking column.
See also: | Number.toExponential(), Number.toFixed() |
Prev | Home | Next |
Number.toLocaleString() | Up | Number.toSource() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |