Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript CLng Function

VBScript CLng Function


VBScript reference manual Complete VBScript Reference Manual


The CLng function converts an expression to the Long type.

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

Syntax

CLng(expression)

Parameters Description
expression Required. Any valid expression.

Example

Example

The example above produces the following output:

300000

1537

-6700000

Try it »


VBScript reference manual Complete VBScript Reference Manual