Absolute (Float function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Test syntaxTable with intrinsic method)
m (Correct header levels)
Line 3: Line 3:
The Absolute function is available as of version 7.3 of the Sirius Mods.
The Absolute function is available as of version 7.3 of the Sirius Mods.


===Absolute syntax===
==Absolute syntax==
     %abs = number:Absolute
     %abs = number:Absolute
====Syntax terms====
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%abs</th><td>A variable to receive the numeric result of the Absolute method.</td></tr>
<tr><th>%abs</th><td>A variable to receive the numeric result of the Absolute method.</td></tr>
Line 11: Line 11:
</table>
</table>


===Examples===
==Examples==
The following statement places into %y the absolute value of the number in %x:
The following statement places into %y the absolute value of the number in %x:
     %y = %x:absolute
     %y = %x:absolute
Line 17: Line 17:
     %y = -6.4:absolute
     %y = -6.4:absolute


===See also===
==See also==
[[List of intrinsic Float methods]]
[[List of intrinsic Float methods]]



Revision as of 05:11, 6 January 2011

This intrinsic function operates on a Float object and returns a number that is the absolute value of the method object. The Absolute function is available as of version 7.3 of the Sirius Mods.

Absolute syntax

    %abs = number:Absolute

Syntax terms

%absA variable to receive the numeric result of the Absolute method.
numberA Float value.

Examples

The following statement places into %y the absolute value of the number in %x:

   %y = %x:absolute

The following statement returns 6.4 to %y:

   %y = -6.4:absolute

See also

List of intrinsic Float methods