fonction VBScript CLng
CLng pour mettre l'expression dans un type entier long (long).
Remarque: La valeur doit être un nombre compris entre -2147483648 et 2147483647.
grammaire
CLng(expression)
参数 | 描述 |
---|---|
expression | 必需。任何有效的表达式。 |
Exemples
Exemples
<script type="text/vbscript">
document.write(CLng("300000") & "<br />")
document.write(CLng(1536.750) & "<br />")
document.write(CLng(-6700000) & "<br />")
</script>
document.write(CLng("300000") & "<br />")
document.write(CLng(1536.750) & "<br />")
document.write(CLng(-6700000) & "<br />")
</script>
Des exemples de sortie ci-dessus:
300000
1537
-6700000
1537
-6700000
Essayez »
Complete VBScript Référence