Absolute (Float function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:
[[Category:Intrinsic Float methods|Absolute function]]
[[Category:Intrinsic Float methods|Absolute function]]
[[Category:Intrinsic methods]]
[[Category:Intrinsic methods]]
[[Category:System methods]]





Revision as of 17:16, 31 December 2010

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

%abs
A variable to receive the numeric result of the Absolute method.
number
A 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