Grails Cookbook - A collection of tutorials and examples

Java Math.Round()

The java.lang.Math class contains many static method for performing various math related functions. One useful utility is the Round() method, which is used to round a float or double number to the closest whole number representation. This post will give explain and give examples on how to use the Java Math.Round() method.