Solved

COMMAS ON NUMBERS WHEN I USE RESPONSE.WRITE

Posted on 2004-04-02
2
249 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
Comment Utility
@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
Comment Utility
Perfect. Thanks!!!

Pablo.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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/…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now