TNumber.Sign Method

Computes the sign function for the number.

If obj is of type TSystem then applies this method recursively to all elements of the system.

For a scalar value, the sign function is defined as follows.

-1Value is negative.
0Value is zero.
1Value is positive.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
C#
public TNumber Sign()

Return Value

TNumber
Value(s) of the sign function.

Exceptions

GeneralException Thrown if Type of obj is neither scalar nor TSystem.

See Also