StrictMath.Round Method

Definition

Overloads

Round(Single)

Returns the result of rounding the argument to an integer.

Round(Double)

Returns the result of rounding the argument to an integer.

Round(Single)

Returns the result of rounding the argument to an integer.

[Android.Runtime.Register("round", "(F)I", "")]
public static int Round (float a);
static member Round : single -> int

Parameters

a
Single

Returns

Int32
Attributes

Remarks

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

Round(Double)

Returns the result of rounding the argument to an integer.

[Android.Runtime.Register("round", "(D)J", "")]
public static long Round (double a);
static member Round : double -> int64

Parameters

a
Double

Returns

Int64
Attributes

Remarks

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