Click or drag to resize

UtilLE(Double, Double, Double) Method

Test if a is less than or equal to b (within e tolerance)

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static bool LE(
	double a,
	double b,
	double e
)

Parameters

a  Double
First value
b  Double
Second value
e  Double
Epsilon for test

Return Value

Boolean
Logical result of comparing a and b
Remarks
Use for floating point comparisons (e.g. "1.0f/3" greater than "1.0/3" returns true, but logically it should be false)
See Also