Here you can find the source of fMoney(float pfNum)
public static float fMoney(float pfNum)
//package com.java2s; //License from project: Apache License public class Main { public static float fMoney(float pfNum) { float lfNum; if (pfNum >= 0f) lfNum = pfNum + .0025f;// www .j ava 2 s.com else lfNum = pfNum - .0025f; return lfNum; } public static double fMoney(double pfNum) { double lfNum; // lfNum = (float)( ( 100 * pfNum ) + .5 ) /100 ; // lfNum = Math.rint(.5 + pfNum * 100.0)/100.0; if (pfNum >= 0f) lfNum = pfNum + .0025f; else lfNum = pfNum - .0025f; return lfNum; } }