Module org.jooq
Package org.jooq.impl

Interface QOM.Round<T extends Number>

All Superinterfaces:
Field<T>, FieldOrConstraint, FieldOrRow, GroupField, Named, OrderField<T>, QueryPart, SelectField<T>, SelectFieldOrAsterisk, Serializable, Typed<T>
Enclosing class:
QOM

public static interface QOM.Round<T extends Number> extends Field<T>
The ROUND function.

Round a numeric value to the nearest decimal precision.

  • Method Details

    • $value

      @NotNull @NotNull Field<T> $value()
      The number to be rounded.
    • $decimals

      @Nullable @Nullable Field<Integer> $decimals()
      The decimals to round to.
    • $value

      @NotNull @NotNull QOM.Round<T> $value(Field<T> value)
      The number to be rounded.
    • $decimals

      @NotNull @NotNull QOM.Round<T> $decimals(Field<Integer> decimals)
      The decimals to round to.