Difference between revisions of "SameValue"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
 
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
  
 
==Description==
 
==Description==
Returns [[true]] if 2 [[extended]] floating point values equal eachother.
+
Returns [[true]] if 2 [[extended]] floating point values equal each other.
  
 
==Example==
 
==Example==
Line 21: Line 21:
 
  1
 
  1
 
  0
 
  0
 +
 +
==See Also==
 +
*[[InRange]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Math Functions]]
 
[[Category:Math Functions]]

Latest revision as of 09:06, 28 June 2011

Definition

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

Availability

SCAR Divi 3.00 > Current

Description

Returns true if 2 extended floating point values equal each other.

Example

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

Output:

1
0

See Also