sinistapenguin
Technical User
Hi all
I have done a very basic calculation:
strDriverPay=(strNetTotal/100)*strDriverPayRate
This basically calculates how much to pay a delivery driver based on a percentage (strDriverPayRate) of the sales invoice he delivered.
The problem is that sometimes that when I display the result:
<%= "£" & strDriverPay%>
I sometimes get £1234.567890
Does anyone out there know how to limit the answer to 2 decimal places? ie. 1234.57??
Thanks
Sinista
I have done a very basic calculation:
strDriverPay=(strNetTotal/100)*strDriverPayRate
This basically calculates how much to pay a delivery driver based on a percentage (strDriverPayRate) of the sales invoice he delivered.
The problem is that sometimes that when I display the result:
<%= "£" & strDriverPay%>
I sometimes get £1234.567890
Does anyone out there know how to limit the answer to 2 decimal places? ie. 1234.57??
Thanks
Sinista