ASP, adding two variables 
Author Message
 ASP, adding two variables

I'm trying to add to variables in ASP

a= 15 +  b=5

I want the out put to write 15.00 but is just write 15 with out .00 how ca i
Get it to write the .00 my code looks like this

Dima a, b
a=15
b=5
a=a+b
Response.Write  a

Thanks



Sat, 03 Aug 2002 03:00:00 GMT  
 ASP, adding two variables
FormatNumber(Expression [,NumDigitsAfterDecimal [,IncludeLeadingDigit
[,UseParensForNegativeNumbers [,GroupDigits]]]])

=-=-=
Steve
-=-=-=


Quote:
> I'm trying to add to variables in ASP

> a= 15 +  b=5

> I want the out put to write 15.00 but is just write 15 with out .00 how ca
i
> Get it to write the .00 my code looks like this

> Dima a, b
> a=15
> b=5
> a=a+b
> Response.Write  a

> Thanks



Sat, 03 Aug 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Adding two variables (dont want to append)

2. Add or Sum variable in ASP

3. swap two variables without using a third variable

4. Help : Breaking One WORD variable to two BYTE variable in VB

5. Adding Environmental Variable to System Variables thru VB

6. adding variable in document.add line

7. How to add and remove items between two listboxes

8. add values of two controls

9. Adding/Subtrackting two Date objects

10. VBScript to add users to two domains

11. passing javascript variable into asp variable using vbscript

12. Passing Javascript Variables to VBscript (ASP) Variables

 

 
Powered by phpBB® Forum Software