SameValue

From SCAR Divi Manual
Revision as of 23:35, 27 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function SameValue(A, B: Extended): Boolean; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Returns [[tru...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function SameValue(A, B: Extended): Boolean;

Availability

SCAR Divi 3.00 > Current

Description

Returns true if 2 extended floating point values equal eachother.

Example

begin
  WriteLn(SameValue(1.1, 1.1));
  WriteLn(SameValue(1.1, 1.2));
end.

Output:

1
0