Bitmap for UWP
NearEqual メソッド

C1.UWP.DX アセンブリ > C1.Util.DX 名前空間 > DXUtil クラス : NearEqual メソッド
The left value to compare.
The right value to compare.
Checks if a and b are almost equals, taking into account the magnitude of floating point numbers. See Remarks. See remarks.
シンタックス
'宣言
 
Public Shared Function NearEqual( _
   ByVal a As System.Single, _
   ByVal b As System.Single _
) As System.Boolean
public static System.bool NearEqual( 
   System.float a,
   System.float b
)

パラメータ

a
The left value to compare.
b
The right value to compare.

戻り値の型

trueif a almost equal to b, falseotherwise
解説
The code is using the technique described by Bruce Dawson in Comparing Floating point numbers 2012 edition.
参照

DXUtil クラス
DXUtil メンバ