Difference between revisions of "INT()"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
Helen.george (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return integer | Function to return integer | ||
− | |||
==Syntax== | ==Syntax== | ||
INT(<expN>) | INT(<expN>) | ||
− | |||
==See Also== | ==See Also== | ||
[[FIXED()]], [[LENNUM()]], [[ROUND()]], [[SET DECIMALS]], [[SET FIXED]] | [[FIXED()]], [[LENNUM()]], [[ROUND()]], [[SET DECIMALS]], [[SET FIXED]] | ||
− | |||
==Description== | ==Description== | ||
The INT() function converts the numeric expression <expN> to an integer by discarding all digits to the right of the decimal point. | The INT() function converts the numeric expression <expN> to an integer by discarding all digits to the right of the decimal point. | ||
− | |||
==Example== | ==Example== | ||
Line 22: | Line 18: | ||
-2 | -2 | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== |
Revision as of 12:47, 11 December 2012
Purpose
Function to return integer
Syntax
INT(<expN>)
See Also
FIXED(), LENNUM(), ROUND(), SET DECIMALS, SET FIXED
Description
The INT() function converts the numeric expression <expN> to an integer by discarding all digits to the right of the decimal point.
Example
? int(2.56) 2 ? int(-2.56) -2
Products
Lianja Server, Lianja