Java Number Convert getMoneyConversion(int money, int divisor)

Here you can find the source of getMoneyConversion(int money, int divisor)

Description

get Money Conversion

License

Open Source License

Declaration

public static BigDecimal getMoneyConversion(int money, int divisor) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

public class Main {

    public static BigDecimal getMoneyConversion(int money, int divisor) {
        BigDecimal a = new BigDecimal(money);
        BigDecimal b = new BigDecimal(divisor);
        return a.divide(b);
    }/*from w ww . j  a va  2  s. c  o  m*/
}

Related

  1. convertToKg(int value)
  2. convertToLong(String decimal, int precision)
  3. ConvertToMeters(double distance)
  4. convertToMm(double value)
  5. convertToMoney(float money)
  6. numToBytes(byte[] buffer, long value)
  7. numToBytes(byte[] buffer, long value, int radix)
  8. numToBytes(long value, byte[] b, int off, int len)
  9. numToInt(Number n)