Absolute (Float function): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 3: | Line 3: | ||
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 <var>Absolute</var> function is available as of version 7.3 of the Sirius Mods. | ||
==Syntax== | ==Syntax== | ||
Line 9: | Line 9: | ||
===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 <var>Absolute</var> method.</td></tr> | ||
<tr><th>number</th><td>A Float value.</td></tr> | <tr><th>number</th><td>A Float value.</td></tr> | ||
</table> | </table> | ||
Line 29: | Line 29: | ||
<!-- | <!-- | ||
<section begin=dpl_desc /> | <section begin=dpl_desc /> | ||
Absolute value of number | <var>Absolute</var> value of number | ||
<section end=dpl_desc /> | <section end=dpl_desc /> | ||
--> | --> |
Revision as of 15:32, 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
%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