java tutorial - Java Math.rint() Method - tutorial java - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - Java numbers rint - Java examples - Java programs
Description
Method Math.rint () Returns an integer that is nearest to the value of the argument, in other words - rounds the fraction to the whole.
Syntax
Options
Detailed information about the parameters:
- d - takes the value of double as a parameter.
Return value
- In Java, Math.rint () returns an integer that is closest in the argument value. Returns as a double.