code: public final void setDecimals(final int decimals) {
          Condition.INSTANCE.ensureAtLeast(decimals, 0, "The decimals must be at least 0");
          this.decimals = decimals;
          setValue(roundToDecimals(getValue()));
      }
docs: Sets the number of decimals of the floating point numbers, the preference should allow to
  choose. If the number of decimals is set to 0, the preference will only allow to choose
  integer values.
  
  @param decimals
  The number of decimals, which should be set, as an {@link Integer} value. The value
  must be at least 0. If the value is set to 0, the preference will only allow to
  choose integer values