Latest web development tutorials

VBScript CLng function

VBScript Reference Complete VBScript Reference

CLng to put the expression into a long integer (Long) type.

Note: The value must be a number between -2147483648 and 2147483647.

grammar

CLng(expression)

参数 描述
expression 必需。任何有效的表达式。

Examples

Examples

<script type="text/vbscript">

document.write(CLng("300000") & "<br />")
document.write(CLng(1536.750) & "<br />")
document.write(CLng(-6700000) & "<br />")

</script>

Examples of the above output:

300000
1537
-6700000

try it"

VBScript Reference Complete VBScript Reference