Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

COMMAS ON NUMBERS WHEN I USE RESPONSE.WRITE

Posted on 2004-04-02
2
Medium Priority
?
291 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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 video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Screencast - Getting to Know the Pipeline

783 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