Difference between revisions of "Abs"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <func>function Abs(e: Extended): Extended;</func> ==Availability== SCAR Divi 3.00 > Current ==Description== This function determines the absolute value of the [[...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Definition==
 
==Definition==
<func>function Abs(e: Extended): Extended;</func>
+
<source lang="scar" lines="false">
 +
function Abs(e: Extended): Extended;
 +
</source>
  
 
==Availability==
 
==Availability==
Line 6: Line 8:
  
 
==Description==
 
==Description==
This function determines the absolute value of the [[extended]] value '''e''' which is passed as an argument to the function.
+
Returns the [http://en.wikipedia.org/wiki/Absolute_value absolute value] of the [[extended]] floating point value '''e''' which is passed as an argument to the function.
  
 
==Example==
 
==Example==
Line 21: Line 23:
  
 
==See Also==
 
==See Also==
*[[Inversus]]
+
*[[IAbs]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Math Functions]]
 
[[Category:Math Functions]]

Latest revision as of 23:51, 2 July 2011

Definition

function Abs(e: Extended): Extended;

Availability

SCAR Divi 3.00 > Current

Description

Returns the absolute value of the extended floating point value e which is passed as an argument to the function.

Example

begin
  WriteLn(Abs(1.1));
  WriteLn(Abs(-1.1));
end.

Output:

1,1
1,1

See Also