Java BigDecimal Calculate calculateDayRate(BigDecimal rate, BigDecimal money)

Here you can find the source of calculateDayRate(BigDecimal rate, BigDecimal money)

Description

calculate Day Rate

License

Apache License

Declaration

public static BigDecimal calculateDayRate(BigDecimal rate, BigDecimal money) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;
import java.math.RoundingMode;

public class Main {

    public static BigDecimal calculateDayRate(BigDecimal rate, BigDecimal money) {
        rate = rate.divide(new BigDecimal(365), 10, RoundingMode.HALF_UP);
        return rate.multiply(money);
    }//w w  w  .  j a va  2s .co  m
}

Related

  1. calcBMI(BigDecimal lbs, BigDecimal inches)
  2. calcDistance(final BigDecimal x1, final BigDecimal y1, final BigDecimal x2, final BigDecimal y2)
  3. calcPercentage(int priceInCents, BigDecimal vat)
  4. calculate(BigDecimal number1, String operator, BigDecimal number2, int decimalPlaces)
  5. calculateArithmeticMean(BigDecimal[] values)
  6. calculateDeviation(BigDecimal v1, BigDecimal v2)
  7. calculateDivide(BigDecimal numerator, BigDecimal denominator)
  8. calculateGainPercentage(BigDecimal gain, BigDecimal totalGains)
  9. calculateLHS(BigDecimal a, Vector Bj, Vector Bj1)