Number toLocaleString()
syntax: |
number.toLocaleString() |
return: |
string - a string representation of this number.
|
description: |
This method behaves like Number toString() and converts a number to a string in a manner specific to the current locale. Such things as placement of decimals and comma separators are affected.
|
see: |
|
example: |
var n = 8.9; var s = n.toLocaleString(); |