Abs()

From Microduino Wiki
Revision as of 02:00, 17 August 2016 by Fengfeng (talk) (Created page with "<pre style="color:green"> abs(x) ((x)>0?(x):-(x)) </pre> Calculate the absolute value of X. https://wiki.microduino.cc/index.php/Arduino_Syntax_Manual Return to Arduino...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
abs(x)   ((x)>0?(x):-(x))

Calculate the absolute value of X.

[Return to Arduino Syntax Manual]