Integer.Signum(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the signum function of the specified int
value.
[Android.Runtime.Register("signum", "(I)I", "")]
public static int Signum (int i);
[<Android.Runtime.Register("signum", "(I)I", "")>]
static member Signum : int -> int
Parameters
- i
- Int32
the value whose signum is to be computed
Returns
the signum function of the specified int
value.
- Attributes
Remarks
Returns the signum function of the specified int
value. (The return value is -1 if the specified value is negative; 0 if the specified value is zero; and 1 if the specified value is positive.)
Added in 1.5.
Java documentation for java.lang.Integer.signum(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.