;;;WITHOUT rounding them up
I dont see how what you have would round them up. Round up to the nearest tenth yes, whole number - no
Anyhow - the formatNumber function will work for you:
<%= formatNumber(cdbl(newArray(5))+cdbl(newArray(6)),2 )%>
Here is a cut n paste example (you get the same result withiout the CDBL function):
<%
dim var1,var2,result
var1 = 1.55
var2 = 1.35
response.write formatNumber((CDbl(var1) + cDbl(var2)),2)
%>
Wind is your friend
Matt
|