Solved

COMMAS ON NUMBERS WHEN I USE RESPONSE.WRITE

Posted on 2004-04-02
2
273 Views
Last Modified: 2008-03-17
Hi Experts!

Is it possible to put a comma when I display a number on the screen (with response.redirect)?.

For example:

<%
VAR1=1500.02
VAR2=1500.4
RESPONSE.WRITE(VAR1+VAR2)
%>

I need to display 3,000.42 in place of 3000.42

Thanks!

Pablo
0
Comment
Question by:Evolutionmarketplace
2 Comments
 
LVL 19

Accepted Solution

by:
Dexstar earned 500 total points
ID: 10743367
@Evolutionmarketplace:

> Is it possible to put a comma when I display a number on the screen (with
> response.redirect)?.

Try this:
    <%
        VAR1=1500.02
        VAR2=1500.4
        RESPONSE.WRITE( FormatNumber(VAR1+VAR2, 2, True, True, True) )
    %>

Hope That Helps,
Dex*
0
 

Author Comment

by:Evolutionmarketplace
ID: 10744042
Perfect. Thanks!!!

Pablo.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question