M_Rhino_RhinoMath_IsValidDouble - mcneel/rhinocommon-api-docs GitHub Wiki

RhinoMath.IsValidDouble 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: Rhino 6.0

Syntax

C#

public static bool IsValidDouble(
	double x
)

VB

Public Shared Function IsValidDouble ( 
	x As Double
) As Boolean

Parameters

 

x
Type: System.Double
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.

Version Information

Supported in: 5D58w

See Also

Reference

RhinoMath Class
Rhino Namespace

⚠️ **GitHub.com Fallback** ⚠️