Click or drag to resize
DigitalRuneNumericClampToZero Method (Single)
Clamps near-zero values to zero.

Namespace: DigitalRune.Mathematics
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public static float ClampToZero(
	float value
)

Parameters

value
Type: SystemSingle
The value.

Return Value

Type: Single
0 if value is nearly zero (within the tolerance EpsilonF) or the original value otherwise.
See Also