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 [[...")
 
Line 6: Line 6:
  
 
==Description==
 
==Description==
This function determines the absolute value of the [[extended]] value '''e''' which is passed as an argument to the function.
+
This function determines the [http://en.wikipedia.org/wiki/Absolute_value absolute value] of the [[extended]] value '''e''' which is passed as an argument to the function.
  
 
==Example==
 
==Example==

Revision as of 16:26, 25 June 2011

Definition

<func>function Abs(e: Extended): Extended;</func>

Availability

SCAR Divi 3.00 > Current

Description

This function determines the absolute value of the extended 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