EsbDecimals - a Free Subset of ESBPCS for .NET | |
CompareOps.SameValue Method (Single, Single)
Returns True if the Values are within a "small" value of each other.
FloatPrecisionDef defines the precision.
If you want more control over the comparison then use CompareValue
[Visual Basic]Overloads Public Shared Function SameValue( _
ByVal
x As
Single, _
ByVal
y As
Single _
) As
Boolean Parameters
- x
- First Value to compare.
- y
- Second Value to compare.
Return Value
true if values are within precision of each other.
Remarks
There is an overloaded version that allows you to specifiy the precision of the comparison.
See Also
CompareOps Class | Esb.Math Namespace | CompareOps.SameValue Overload List