Click or drag to resize
RhinoMathIsValidDouble Method
Determines whether a Double value is valid within the RhinoCommon context.

Rhino does not use Double.NaN by convention, so this test evaluates to true if:

x is not equal to RhinoMath.UnsetValue

System.Double.IsNaN(x) evaluates to false

System.Double.IsInfinity(x) evaluates to false

Namespace: Rhino
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public static bool IsValidDouble(
	double x
)

Parameters

x
Type: SystemDouble
Double number to test for validity.

Return Value

Type: Boolean
true if the number if valid, false if the number is NaN, Infinity or Unset.
See Also