Show: Delphi C++
Display Preferences

System.Math.SameValue

From XE2 API Documentation
Jump to: navigation, search

Delphi

function SameValue(const A, B: Extended; Epsilon: Extended): Boolean;
function SameValue(const A, B: Double; Epsilon: Double): Boolean;
function SameValue(const A, B: Single; Epsilon: Single): Boolean;

C++

extern PACKAGE bool __fastcall SameValue(const System::Extended A, const System::Extended B, System::Extended Epsilon = 0.000000E+00)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

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

Call SameValue to determine when two floating-point values are equal, or approximately equal.

A and B are the values to compare.

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

See Also

Personal tools
Previous Versions
Translations