Solved

COMMAS ON NUMBERS WHEN I USE RESPONSE.WRITE

Posted on 2004-04-02
2
282 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

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…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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