Java.Lang.StrictMath.Rint Method
Returns the double conversion of the result of rounding the argument to an integer.

Syntax

[Android.Runtime.Register("rint", "(D)D", "")]
public static double Rint (double d)

Parameters

d
the value to be rounded.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the double conversion of the result of rounding the argument to an integer. Tie breaks are rounded towards even.

Special cases:

  • rint(+0.0) = +0.0
  • rint(-0.0) = -0.0
  • rint(+infinity) = +infinity
  • rint(-infinity) = -infinity
  • rint(NaN) = NaN

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1