Field-Map Scripting

4.1.3.1.35 SameValue

SameValue function



Prototype:

function SameValue (const A, B :Double; Epsilon :Double) :boolean;

Description:

Indicates whether two floating-point values are (approximately) equal.

Syntax:

SameValue(A, B, Epsilon); / variable:= SameValue(A, B, Epsilon);


Part

Description


variable

A variable declared as boolean


A,B

The values to compare.


Epsilon

the maximum amount by which A and B can differ and still be considered the same value



See also:

Power; Round; RoundTo, RoundVariant; Round2int, Cos; ArcCos; ArcCosH; Sin; ArcSin; ArcSinH; ArcTan; ArcTan2; ArcTanH; CosH; SinH; Tan; TanH; Random; RandomRange; Randomize; Floor; Ceil; Int; Frac; Log10; Ln; Exp; Abs; Min; Max; Odd; SecondsBetween;CompareValue; SameValue; Trunc


Example