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

VBScript CInt function


May 13, 2021 VBScript


Table of contents


VBScript CInt function

The VBScript CInt function is used to return an expression that has been converted to variant of the Integer sub-type.


VBScript CInt function Complete VBScript reference manual

The CInt function converts expressions to integer types.

Note: The value must be a number between -32768 and 32767.

Grammar

CInt(expression)

Parameters

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

document.write(CInt("300") & "<br />")
document.write(CInt(36.75) & "<br />")
document.write(CInt(-67) & "<br />")

</script>

The above example output results:

300
37
-67

Try it out . . .

VBScript CInt function Complete VBScript reference manual