BigDecimal.Max(BigDecimal) Method

Definition

Returns the maximum of this BigDecimal and val.

[Android.Runtime.Register("max", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetMax_Ljava_math_BigDecimal_Handler")]
public virtual Java.Math.BigDecimal? Max (Java.Math.BigDecimal? val);
[<Android.Runtime.Register("max", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetMax_Ljava_math_BigDecimal_Handler")>]
abstract member Max : Java.Math.BigDecimal -> Java.Math.BigDecimal
override this.Max : Java.Math.BigDecimal -> Java.Math.BigDecimal

Parameters

val
BigDecimal

value with which the maximum is to be computed.

Returns

the BigDecimal whose value is the greater of this BigDecimal and val. If they are equal, as defined by the #compareTo(BigDecimal) compareTo method, this is returned.

Attributes

Exceptions

if val == null.

Remarks

Java documentation for java.math.BigDecimal.max(java.math.BigDecimal).

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