Jakarta Persistence (JPA) Method

Expression<T> round(
  Expression<T> x,
  Integer n
)


Create an expression that returns the first argument rounded to the number of decimal places given by the second argument.
Parameters:
x - base
n - number of decimal places
Returns:
the rounded value.
Since:
Jakarta Persistence (JPA) 1.0