src/main/java/com/rockagen/commons/util/Arith.java
public static float subF(final float v1,final float v2){
        BigDecimal b1 = new BigDecimal(Float.toString(v1));
        BigDecimal b2 = new BigDecimal(Float.toString(v2));
        return b1.subtract(b2).floatValue();
    }
public static float subF(final float v1,final float v2){
        BigDecimal b1 = new BigDecimal(Float.toString(v1));
        BigDecimal b2 = new BigDecimal(Float.toString(v2));
        return b1.subtract(b2).floatValue();
    }
public static float subF ( final float v1 , final float v2 ) { BigDecimal b1 = new BigDecimal ( Float . toString ( v1 ) ) ; BigDecimal b2 = new BigDecimal ( Float . toString ( v2 ) ) ; return b1 . subtract ( b2 ) . floatValue ( ) ; }
sub
@param v1 left value
@param v2 right value
@return v1-v2
sub