StrictMath.Rint(Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 value.
Returns
the closest floating-point value to a
that is
equal to a mathematical integer.
- Attributes
Remarks
Returns the double
value that is closest in value to the argument and is equal to a mathematical integer. If two double
values that are mathematical integers are equally close to the value of the argument, the result is the integer value that is even. Special cases: <ul><li>If the argument value is already equal to a mathematical integer, then the result is the same as the argument. <li>If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.</ul>
Java documentation for java.lang.StrictMath.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.