X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

VBScript CLng Function


VBScript Reference 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 »

VBScript Reference Complete VBScript Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook