M_Rhino_RhinoMath_IsValidSingle - mcneel/rhinocommon-api-docs GitHub Wiki

RhinoMath.IsValidSingle Method

Determines whether a Single value is valid within the RhinoCommon context. Rhino does not use Single.NaN by convention, so this test evaluates to true if:

x is not equal to RhinoMath.UnsetValue,

System.Single.IsNaN(x) evaluates to false

System.Single.IsInfinity(x) evaluates to false

Namespace: Rhino
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static bool IsValidSingle(
	float x
)

VB

Public Shared Function IsValidSingle ( 
	x As Single
) As Boolean

Parameters

 

x
Type: System.Single
Single 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** ⚠️