Determines the absolute value of a value.
Files
lib_def.h
Prototype
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
DEF_ABS(a);
|
Arguments
a
Value to calculate absolute value.
...
Ideally, DEF_ABS()
should be defined in the custom mathematics library, lib_math.*
. However, to maintain backwards compatibility with previously-released modules, DEF_ABS()
is still defined in lib_def.h
.
Example Usage
...
Language | C++ |
---|---|
CaptionText | CAPTION |
language | cpp |
...