IMathTNumericSign Method
Returns an integer that indicates the sign of a number.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
int Sign(
TNumeric value
)
Function Sign (
value As TNumeric
) As Integer
int Sign(
TNumeric value
)
abstract Sign :
value : 'TNumeric -> int
- value TNumeric
- A number.
Int32
A number that indicates the sign of
value, as shown in the following table.
Return value | Meaning |
---|
-1 | value is less than zero |
0 | value is equal to zero. |
1 | value is greater than zero. |
This method may return
NaN or Infinity.
If
NaN or Infinity cannot be represented by
TNumeric,
then this method may throw an
ArithmeticException.