Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.
Name | fabs() |
||
---|---|---|---|
Examples | double c = fabs(-3.5); // Sets c to 3.5 double d = fabs(2.7172); // Sets d to 2.7172 |
||
Description | The fabs() function calculates the absolute value of a floating-point number. | ||
Syntax | fabs(x) |
||
Parameters |
|
||
Returns | double | ||
Usage | Application |