Int

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


Int (number) Number

ParameterTypeDescription
numberNumberNumber whose integer portion is returned
Function resultNumberInteger portion of number

Description

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

See Also

Dec.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next