Problem using Round(expression,2)

1. Senior Member
Join Date
Dec 1969
Posts
1,016

## Problem using Round(expression,2)

Hello all, I have a little problem using the Round() function.<BR>Dim strValue1, strValue2, strTotal<BR>strValue1 = 10.00<BR>strValue2 = 5.00<BR>strTotal = Round(strValue1 + strValue2, 2)<BR>Response.Write "You must pay " & strTotal & " to get in"<BR>******************************************* *<BR>*The result is "You must pay 15 to get in "*<BR>******************************************** <BR>What I&#039d like is to have the 15 with decimal(15.00)<BR>I do not what to use FormatCurrency()<BR>So is their a way to get what I whant? 15.00<BR><BR>

2. Skippie Guest

## RE: Problem using Round(expression,2)

I&#039m assuming you don&#039t want to use FormatCurrency because of the<BR>dollar sign. I would just get rid of it.<BR><BR>&#060;%<BR>strtotal = 15<BR>strTotal = FormatCurrency(strTotal)<BR>strTotal = Replace(strTotal,"\$","")<BR>Response.Write(strTota l)<BR>%&#062;<BR><BR><BR>-- Skippie

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•