Difference between revisions of "INT()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
 
Line 1: Line 1:
 
 
 
==Purpose==
 
==Purpose==
 
Function to return integer
 
Function to return integer
Line 27: Line 25:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Numeric Data]]
 
[[Category:Numeric Data]]
 
[[Category:Numeric Data Functions]]
 
[[Category:Numeric Data Functions]]

Latest revision as of 16:40, 2 December 2009

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

Recital Server, Recital