VBScript CDbl Function
CDbl function to convert expressions to double precision (Double) type.
Expression must be a numeric value.
grammar
CDbl(expression)
参数 | 描述 |
---|---|
expression | 必需。任何有效的表达式。 |
Examples
Example 1
<script type="text/vbscript">
document.write(CDbl(134.345) & "<br />")
</script>
document.write(CDbl(134.345) & "<br />")
</script>
Examples of the above output:
134.345
try it"
Example 2
<script type="text/vbscript">
document.write(CDbl(14111111113353355.345455) & "<br />")
</script>
document.write(CDbl(14111111113353355.345455) & "<br />")
</script>
Examples of the above output:
1.41111111133534E+16
try it"
Complete VBScript Reference