Javascript has such a function. It is called:
toLocaleString()
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
There is no way to change data in either html or css. They control how things are displayed, but what you want is not a matter of display, but of changing data.
You need to take numerical data, which is stored in the computer in binary form (not decimal), and create a string of characters with decimal numbers in it, separated by commas.
This is far beyond the scope of html and css. In fact, it is not usually provided in most programming languages (The only ones I know of for sure are COBOL, PL-I, and JavaScript). The programmer who wants this kind of display usually has to write a special procedure to create the string.
One thought is that you can somehow use a spreadsheet to do the data conversion. They usually have this capability.
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
umm, cobol can output those numbers with commas added into them, just move it to a different pic.
What's wrong with calling javascript in this case anyway?
Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51