Abs()

From Microduino Wiki
Jump to: navigation, search
abs(x)   ((x)>0?(x):-(x))

Calculate the absolute value of X.

[Return to Arduino Syntax Manual]