- This wiki is out of date, use the continuation of this wiki instead
Abs
From FenixWiki
Contents |
[edit] Definition
FLOAT abs ( <FLOAT value> )
Returns the absolute value of value.
[edit] Parameters
| FLOAT value | - The value. |
[edit] Returns
FLOAT : The absolute value of value.
[edit] Example
Global
float value1;
int value2;
End
Process Main()
Begin
write_float(0,0, 0,0,&value1);
write_int(0,0,10,0,&value2);
value1 = abs(3);
value2 = abs(-4);
Repeat
frame;
Until(key(_ESC))
End
Used in example: write_float(), write_int(), abs(), key()
| Math Functions | |
| • Abs() • Acos() • Asin() • Atan() • Cos() • Fget_angle() • Fget_dist() • Get_distx() • Get_disty() • Pow() • Rand() • Rand_seed() • Sin() • Sqrt() • Tan() • | |
