•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 456,196 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,924 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2577 | Replies: 5
![]() |
•
•
Join Date: Mar 2007
Posts: 11
Reputation:
Rep Power: 2
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:
toLocaleString()
Daylight-saving time uses more gasoline
•
•
Join Date: May 2007
Posts: 20
Reputation:
Rep Power: 0
Solved Threads: 0
Forget about HTML, HTML is not programming language, if you are using ASP do that in ASP, easy help.
Join a forum for webmasters and developers
HTML Forum
HTML Forum
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- 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



Linear Mode