Java.Lang.StrictMath.Signum Method
Returns the signum function of the argument.

Syntax

[Android.Runtime.Register("signum", "(D)D", "")]
public static double Signum (double d)

Parameters

d
the value whose signum has to be computed.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the signum function of the argument. If the argument is less than zero, it returns -1.0. If the argument is greater than zero, 1.0 is returned. If the argument is either positive or negative zero, the argument is returned as result.

Special cases:

  • signum(+0.0) = +0.0
  • signum(-0.0) = -0.0
  • signum(+infinity) = +1.0
  • signum(-infinity) = -1.0
  • signum(NaN) = NaN

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1