Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript CLng function


May 13, 2021 VBScript


Table of contents


VBScript CLng function

The VBScript CLng function returns an expression that has been converted to Variant of the Long sub-type.


VBScript CLng function Complete VBScript reference manual

The CLng function converts expressions to long types.

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

Grammar

CLng(expression)

Parameters

parameter describe
expression Required.Any effective expression.
<script type="text/vbscript">

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

</script>

The above example output results:

300000
1537
-6700000

Try it out . . .

VBScript CLng function Complete VBScript reference manual