共用方式為


Math.Rint(Double) Method

Definition

Returns the double value that is closest in value to the argument and is equal to a mathematical integer.

[Android.Runtime.Register("rint", "(D)D", "")]
public static double Rint (double a);
[<Android.Runtime.Register("rint", "(D)D", "")>]
static member Rint : double -> double

Parameters

a
Double

a double value.

Returns

the closest floating-point value to a that is equal to a mathematical integer.

Attributes

Remarks

Java documentation for java.lang.Math.rint(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