Absolute (Float function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Correct header levels)
m (Correct header levels)
Line 1: Line 1:
{{Template:Float:Absolute subtitle}}
This [[Intrinsic classes|intrinsic]] function operates on a Float object and returns a number
This [[Intrinsic classes|intrinsic]] function operates on a Float object and returns a number
that is the absolute value of the method object.
that is the absolute value of the method object.
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==
==Syntax==
    %abs = number:Absolute
{{Template:Float:Absolute syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">

Revision as of 13:42, 19 January 2011

Absolute value of a number (Float class)


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.

Syntax

%number = float: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