SPC
Version 0.9.5
Main Page
Related Pages
Modules
Files
Examples
All
Files
Functions
Groups
Pages
ex_abs.spc
This is an example of how to use the
abs
function.
task main()
{
int
x = 1000 -
Timer0
;
int
val =
abs
(x);
// return the absolute value of x
printf
(
"x = %d, val = %d\n"
, x, val);
}
Generated by
1.8.2