다음을 통해 공유


BigDecimal.Signum Method

Definition

Returns the sign of this BigDecimal, as an int.

[Android.Runtime.Register("signum", "()I", "GetSignumHandler", ApiSince=24)]
public virtual int Signum ();
[<Android.Runtime.Register("signum", "()I", "GetSignumHandler", ApiSince=24)>]
abstract member Signum : unit -> int
override this.Signum : unit -> int

Returns

An int which is -1 if the BigDecimal is negative, 0 if it is numerically equal to zero, or 1 if it is positive.

Attributes

Remarks

Returns the sign of this BigDecimal, as an int. This returns the signum function value that represents the sign of this BigDecimal. That is, -1 if the BigDecimal is negative, 0 if it is numerically equal to zero, or 1 if it is positive.

Java documentation for android.icu.math.BigDecimal.signum().

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