This wiki is out of date, use the continuation of this wiki instead

Abs

From FenixWiki

Revision as of 14:22, 1 March 2008 by Sandman (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


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() •
Personal tools