YouTip LogoYouTip

Func Clng

VBScript CLng Function

VBScript CLng Function

--

VBScript Tutorial

VBScript CLng Function

Image 3: VBScript Reference Manual Complete VBScript Reference Manual

The CLng function converts an expression to a Long integer type.

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

Syntax

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

Example

document.write(CLng("300000") & "
") document.write(CLng(1536.750) & "
") document.write(CLng(-6700000) & "
")

Output of the above example:

300000
1537
-6700000
    

Try it yourself Β»

Image 4: VBScript Reference Manual Complete VBScript Reference Manual

← Func CsngFunc Cint β†’