Hi,
We have a requirement to round the whole number value to the largest integer value that is equal to or less than a number.
Eg 3.6, 3.9, 3.2 Months should be displayed as 3
can anyone suggest how can it be achieved in groovy ?
i tried -
def num = 3.6
num = num.floor()
got error -
groovy.lang.MissingMethodException :
No signature of method: java.math.BigDecimal.floor() is applicable for argument types: () values: []