VBScript CDblFunction


VBScript 参考手册Complete VBScript Reference Manual

The CDbl function converts an expression to a Double type.

The expression must be a numeric value.

Syntax

CDbl(expression)

Parameters Description
expression Required. Any valid expression.

Example

Example 1

<script type="text/vbscript">

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

</script>

The above example outputs:

134.345

Try it Yourself »

Example 2

<script type="text/vbscript">

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

</script>

The above example outputs:

1.41111111133534E+16

Try it Yourself »

VBScript 参考手册Complete VBScript Reference Manual Other Extensions