Udostępnij za pośrednictwem


Float.Max(Single, Single) Method

Definition

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

[Android.Runtime.Register("max", "(FF)F", "", ApiSince=24)]
public static float Max (float a, float b);
[<Android.Runtime.Register("max", "(FF)F", "", ApiSince=24)>]
static member Max : single * single -> single

Parameters

a
Single

the first operand

b
Single

the second operand

Returns

the greater of a and b

Attributes

Remarks

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

Added in 1.8.

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