VBScript CLng Function
--
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
VBScript Tutorial
- VB Tutorial
- VB Usage
- VB Variables
- VB Procedures
- VB Conditionals
- VB Looping
- VB Summary
- VB Examples
- VB Functions
- VB Keywords
VBScript CLng Function
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
YouTip