I am looking for a Java function that rounds up or down, but normally, like 3.2 to 3, and 3.6 to 4. There are a bunch of answers, but all of them either rounding up exclusively or rounding down exclusively. If there is not one then I guess I will have to create it, but just wanted to see if anyone else has ever wanted the same and found one. Thanks in advance!
Share
Math.round():