w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

VBScript CDbl Function


VBScript Reference Complete VBScript Reference

The CDbl function converts an expression to type Double.

The expression must be a numeric value.

Syntax

CDbl(expression)

Parameter Description
expression Required. Any valid expression

Examples

Example 1

<script type="text/vbscript">

document.write(CDbl(134.345) & "<br />")

</script>

The output of the code above will be:

134.345

Try it yourself »

Example 2

<script type="text/vbscript">

document.write(CDbl(14111111113353355.345455) & "<br />")

</script>

The output of the code above will be:

1.41111111133534E+16

Try it yourself »

VBScript Reference Complete VBScript Reference

DreamTemplate

WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Cheap UK Web Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
SEO Company
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
SHARE THIS PAGE