Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

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

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"Success is how high you bounce when you hit bottom." - General George Patton

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.