Saved Bookmarks
| 1. |
Difference between math.round and math.rint |
|
Answer» Answer: Math.rint:- Returns the DOUBLE value that is closest in the value to the ARGUMENT and is equal to mathematical integers. Math,round:- returns the closest into the argument.The RESULT is rounded by an integers by adding 1/2, taking the floor of results and casting the results to type int.Special cases if the argument is NaN then the result is 0. |
|