| |||||||||||||||||||||||||||||
|
"Nils Maier" <MaierMan> wrote in message news:bdadnZm50OIWhH3bnZ2dnUVZ_vOlnZ2d... > Sonny wrote: >> I do not know if this is the correct group to ask and if not please >> direct >> me as to where I might find the answer to: Does Firefox support a >> FormatNumber function to insert the thousands comma or does one need to >> write a script to do that. >> Thanks, Sonny. >> > A better place would be the dev newsgroups. > Like mozilla.dev.extensions. > Or maybe even mozilla.general. > > To answer your question: > There is the toLocaleString() function which will format a given number > accordingly to the system locale. > Sample (German system; we use dots instead of commas and vv): >> (1234567890.245).toLocaleString() >> 1.234.567.890,245 > See the Number reference (and other JS related pages) on devmo: > http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Object s:Number > > Nils > Thanks Nils, that is what I was looking for and works like a champ. Thanks again. Sonny _______________________________________________ support-firefox mailing list support-firefox https://lists.mozilla.org/listinfo/support-firefox To unsubscribe, send an email to support-firefox-request?subject=unsubscribe
| ||||||||||||||||||||||||||||
© 2004-2008 readlist.com