VBScript CDbl Fungsi
CDbl berfungsi untuk mengkonversi ekspresi untuk presisi ganda (Double) jenis.
Ekspresi harus menjadi nilai numerik.
tatabahasa
CDbl(expression)
参数 | 描述 |
---|---|
expression | 必需。任何有效的表达式。 |
contoh
contoh 1
<script type="text/vbscript">
document.write(CDbl(134.345) & "<br />")
</script>
document.write(CDbl(134.345) & "<br />")
</script>
Contoh output di atas:
134.345
Coba »
contoh 2
<script type="text/vbscript">
document.write(CDbl(14111111113353355.345455) & "<br />")
</script>
document.write(CDbl(14111111113353355.345455) & "<br />")
</script>
Contoh output di atas:
1.41111111133534E+16
Coba »
Lengkap VBScript Referensi