Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

VBScript CLng Function

❮ Complete VBScript Reference

The CLng function converts an expression to type Long.

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

Syntax

CLng(expression)
Parameter Description
expression Required. Any valid expression

Example

Example

<%

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

%>

The output of the code above will be:

300000
1537
-6700000
Show Example »

❮ Complete VBScript Reference