CDbl
The CDbl function will convert an ASP variant value into
a double. A double is a double-precision floating point number.
Mathematicians and engineers like to work with floating point numbers
because they offer much greater accuracy.
It is possible that the conversion process will throw a runtime error
in the process of conversion. You man trap this error and report it
using the code shown below:
Dim sValue Dim dValue
sValue ="3241234.3434E13" On Error Resume Next dValue = CDbl(sValue) If Err.Number <> 0 Then Response.Write "An Error occurred converting to double: " & sValue End If
|