4D v14.3

Abs

Home

 
4D v14.3
Abs

Abs 


 

Abs ( number ) -> Function result 
Parameter Type   Description
number  Real in Number for which to return the absolute value
Function result  Real in Absolute value of number

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)

 
PROPERTIES 

Product: 4D
Theme: Math
Number: 99

 
HISTORY 

Created: < 4D v6

 
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)