| | |
display numbers with comma separator in html
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2007
Posts: 11
Reputation:
Solved Threads: 0
am doing a displaying some data in asp ( data is retreived from the
oracle database)
the data are displaying as the following
income
152000
5200000
8754631
but i just want to display the above with a comma separator
like the following
income
152,000
5,200,000
8,754,631
how i can do this using html or css
oracle database)
the data are displaying as the following
income
152000
5200000
8754631
but i just want to display the above with a comma separator
like the following
income
152,000
5,200,000
8,754,631
how i can do this using html or css
Javascript has such a function. It is called:
HTML and CSS Syntax (Toggle Plain Text)
toLocaleString()
Daylight-saving time uses more gasoline
•
•
Join Date: May 2007
Posts: 20
Reputation:
Solved Threads: 1
Forget about HTML, HTML is not programming language, if you are using ASP do that in ASP, easy help.
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.
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.
Daylight-saving time uses more gasoline
![]() |
Similar Threads
- CSV file (C)
- Floating point numbers (C++)
- Help Using For Loop To Display Ordered Numbers (C++)
- storing large numbers (C++)
Other Threads in the HTML and CSS Forum
- Previous Thread: CSS stylesheet layout
- Next Thread: My PHP Site does not work with IE7
Views: 5034 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
2002 appointments asp background backgroundcolor beta browser bug calendar cart center cgi code codeinjection corporateidentity create css deleted design development displayimageinsteadofflash dreamweaver drupal emailmarketing epilepsy explorer firefox flash font fonts form format free frontpage google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft missing mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. templates textcolor theme timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 wordpress xml xsl






