Java Money GetMoneyAmount(int amount, int CheckAmount)

Here you can find the source of GetMoneyAmount(int amount, int CheckAmount)

Description

Get Money Amount

License

Open Source License

Declaration

private static int GetMoneyAmount(int amount, int CheckAmount) 

Method Source Code

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

public class Main {
    private static int GetMoneyAmount(int amount, int CheckAmount) {

        if (amount >= CheckAmount) {

            int left = amount / CheckAmount;

            if (left > 0) {
                return left;
            }//from   ww  w  .  jav a 2 s .  co  m

        }

        return 0;
    }
}

Related

  1. _getStrMoney(Object money)
  2. doubleToMoney(double value)
  3. fMoney(float pfNum)
  4. isMoney(String money)
  5. isMoney(String money)
  6. isMoney(String str)
  7. isMoney(String[] Moneys, String key)