code: public static final BigDecimal printRate(Rate rate)
     {
        BigDecimal result = null;
        if (rate != null && rate.getAmount() != 0)
        {
           result = new BigDecimal(rate.getAmount());
        }
        return result;
     }
docs: Print rate.
  
  @param rate Rate instance
  @return rate value