Click or drag to resize

HalfTypeSign Method

Returns a value indicating the sign of a half-precision floating-point number.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static int Sign(
	HalfType value
)

Parameters

value
Type: NeoAxisHalfType
A signed number.

Return Value

Type: Int32
A number indicating the sign of value. Number Description -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero.
Exceptions
ExceptionCondition
ArithmeticExceptionvalue is equal to System.Half.NaN.
See Also