Udostępnij za pośrednictwem


Double.Max(Double, Double) Method

Definition

Returns the greater of two double values as if by calling Math#max(double, double) Math.max.

[Android.Runtime.Register("max", "(DD)D", "", ApiSince=24)]
public static double Max (double a, double b);
[<Android.Runtime.Register("max", "(DD)D", "", ApiSince=24)>]
static member Max : double * double -> double

Parameters

a
Double

the first operand

b
Double

the second operand

Returns

the greater of a and b

Attributes

Remarks

Returns the greater of two double values as if by calling Math#max(double, double) Math.max.

Added in 1.8.

Java documentation for java.lang.Double.max(double, 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