VBScript » Functions » CLng

Version: 1.0

Syntax:
CLng(Number)

The CLng function converts any number to the variant of subtype Long, with floating-point numbers rounded.

Converts to integers ranging from -2,147,483,648 to 2,147,483,647

Examples

Code:
<% anynumber=1234.6 %>
<% =CLng(anynumber) %>
Output:
1235
Language(s): VBScript

See Also: