Syntax
#define abs(x) ((x)>0?(x):-(x))
ContentsIndex
PreviousUpNext
abs
Syntax
#define abs(x) ((x)>0?(x):-(x))
Description

Computes the absolute value of a number.

Parameters
Parameters 
Description 
the number  
Returns

x: if x is greater than or equal to 0.  

-x: if x is less than 0.

File

wiring_constants.h

Group