 | MathUtilsFloatEquals Method (Single, Single, Single) |
Checks if a floating point Value is equal to another, within a certain tolerance.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static bool FloatEquals(
float value1,
float value2,
float delta
)
Public Shared Function FloatEquals (
value1 As Single,
value2 As Single,
delta As Single
) As Boolean
public:
static bool FloatEquals(
float value1,
float value2,
float delta
)
static member FloatEquals :
value1 : float32 *
value2 : float32 *
delta : float32 -> bool
Parameters
- value1
- Type: SystemSingle
The first floating point Value. - value2
- Type: SystemSingle
The second floating point Value. - delta
- Type: SystemSingle
The floating point tolerance.
Return Value
Type:
Boolean True if the values are "equal"; otherwise, false.
See Also