Java.Lang.StrictMath.Round Method
Returns the result of rounding the argument to an integer.

Syntax

[Android.Runtime.Register("round", "(D)J", "")]
public static long Round (double d)

Parameters

d
the value to be rounded.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the result of rounding the argument to an integer. The result is equivalent to (long) Math.floor(d+0.5).

Special cases:

  • round(+0.0) = +0.0
  • round(-0.0) = +0.0
  • round((anything > Long.MAX_VALUE) = Long.MAX_VALUE
  • round((anything
  • round(+infinity) = Long.MAX_VALUE
  • round(-infinity) = Long.MIN_VALUE
  • round(NaN) = +0.0

[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