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

Abs

From FenixWiki

Revision as of 14:27, 27 May 2007 by Sandman (Talk | contribs)
Jump to: navigation, search


Contents

Definition

FLOAT abs ( <FLOAT value> )

Returns the absolute value of value.

Parameters

FLOAT value - The value.

Returns

FLOAT : The absolute value of value.

Example

Program absolutely;
Global
    float value1;
    int value2;
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(), key()

Personal tools