CCur
The CCur function converts an ASP variant variable into a
currency value. A currency value is similar to decimal in that all
of the digits are significant and cannot be lost due to internal
representations of floating point data.
This conversion function can throw runtime errors just like any other
conversion function. You can check for these errors and report them
using an error handler as shown below:
Dim sValue Dim cValue
sValue ="123.456789" On Error Resume Next cValue = CCur(sValue) If Err.Number <> 0 Then Response.Write "An Error occurred converting to currency: " & sValue End If
|
 |

|