Solved

COMMAS ON NUMBERS WHEN I USE RESPONSE.WRITE

Posted on 2004-04-02
2
266 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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 …

832 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