code: public RoundedMoney with(Number amount) {
          checkNumber(amount);
          return new RoundedMoney(MoneyUtils.getBigDecimal(amount), currency, rounding);
      }
docs: /*
  (non-Javadoc)
  @see javax.money.MonetaryAmount#with(java.lang.Number)