Math.Signum Method

Definition

Overloads

Signum(Double)

Returns the signum function of the argument; zero if the argument is zero, 1.

Signum(Single)

Returns the signum function of the argument; zero if the argument is zero, 1.

Signum(Double)

Returns the signum function of the argument; zero if the argument is zero, 1.

[Android.Runtime.Register("signum", "(D)D", "")]
public static double Signum (double d);
[<Android.Runtime.Register("signum", "(D)D", "")>]
static member Signum : double -> double

Parameters

d
Double

the floating-point value whose signum is to be returned

Returns

the signum function of the argument

Attributes

Remarks

Java documentation for java.lang.Math.signum(double).

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.

Applies to

Signum(Single)

Returns the signum function of the argument; zero if the argument is zero, 1.

[Android.Runtime.Register("signum", "(F)F", "")]
public static float Signum (float f);
[<Android.Runtime.Register("signum", "(F)F", "")>]
static member Signum : single -> single

Parameters

f
Single

the floating-point value whose signum is to be returned

Returns

the signum function of the argument

Attributes

Remarks

Java documentation for java.lang.Math.signum(float).

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.

Applies to