toLong
Table of Contents
Overview
The toLong function takes an expression as an argument, and returns a number.
Return Type
- NUMBER
Syntax
<variable>=<expression>.toLong();
(OR)
<variable>=toLong(<expression>);
(OR)
<variable>=<expression>.toNumber();
(OR)
<variable>=toNumber(<expression>);
where,
| Parameter | Data type | Description |
| <variable> | NUMBER | Variable which will contain the converted number. |
| <expression> | NUMBER/DECIMAL/DATE-TIME/TEXT | The expression which will resolve to a number. Note:
|
Examples
marks=99.9; marks_text="100"; info toLong(marks);// Returns 99 info marks_text.toLong();// Returns 100