Java Money moneyMinus(float a, float b)

Here you can find the source of moneyMinus(float a, float b)

Description

money Minus

License

Apache License

Declaration

public static float moneyMinus(float a, float b) 

Method Source Code

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

public class Main {
    public static float moneyMinus(float a, float b) {
        final int intA = (int) (100 * a);
        final int intB = (int) (100 * b);
        final int intResult = intA - intB;
        final float result = intResult / 100.0f;
        return result;
    }//from   w ww. jav a2  s. c o m
}

Related

  1. isMoney(String money)
  2. isMoney(String str)
  3. isMoney(String[] Moneys, String key)
  4. moneyChange(String money)
  5. moneyFenToYuan(String amount)
  6. multiMoney(Integer money)
  7. string2Money(String money)
  8. translateMoneyStr(String money)