4D v14.3

Int

Home

 
4D v14.3
Int

Int 


 

Int ( number ) -> Function result 
Parameter Type   Description
number  Real in Number whose integer portion is returned
Function result  Real in Integer portion of number

Int returns the integer portion of number. Int truncates a negative number away from zero.

Example  

The following example illustrates how Int works for both positive and negative numbers. Note that the decimal portion of the number is removed:

 vlResult:=Int(123.4) ` vlResult gets 123
 vlResult:=Int(-123.4) ` vlResult gets –124

 
PROPERTIES 

Product: 4D
Theme: Math
Number: 8

 
HISTORY 

Created: < 4D v6

 
SEE ALSO 

Dec

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)