VBScript » Functions » CInt

Version: 1.0

Syntax:
CInt(Number)

The CInt function converts any number to the variant of subtype Integer.

Converts to values ranging from -32,768 to 32,767

Examples

Code:
<% anynumber=1234.567 %>
<% =CInt(anynumber) %>
Output:
1235
Explanation:

The number is rounded off.

Language(s): VBScript

See Also: