SPC  Version 0.9.5
 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);
}