hi.. i display the cost of a charge on my site using..
sometimes the surcharge displays as £5.45
how can i round the surcharge to the nearest pound. (and if it is £5.50 for example then round it upwards)
thanks
Code:
Dim mainprice, surcharge, sTempVar
sTempVar = "&#"
surcharge = mainprice * 0.05
DISPLAY IT USING THE FOLLOWING..
<%=sTempVar & "163;" & trim(surcharge)%>
sometimes the surcharge displays as £5.45
how can i round the surcharge to the nearest pound. (and if it is £5.50 for example then round it upwards)
thanks