code: public RoundedMoney pow(int n) {
          MathContext mc = monetaryContext.get(MathContext.class);
          if(mc==null){
              mc = MathContext.DECIMAL64;
          }
          return new RoundedMoney(number.pow(n, mc),
                  currency, rounding).with(rounding);
      }
docs: /*
  (non-Javadoc)
  @see javax.money.MonetaryAmount#pow(int)