Here you can find the source of moneyMinus(float a, float b)
public static float moneyMinus(float a, float b)
//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 }