Abs

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


Abs (number) Number

ParameterTypeDescription
numberNumberNumber for which to return the absolute value
Function resultNumberAbsolute value of number

Description

Abs returns the absolute (unsigned, positive) value of number. If number is negative, it is returned as positive. If number is positive, it is returned unchanged.

Example

The following example returns the absolute value of –10.3, which is 10.3:

   vlVector:=Abs(–10.3)

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