Here you can find the source of percentToFactor(BigDecimal percent)
public static BigDecimal percentToFactor(BigDecimal percent)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal percentToFactor(BigDecimal percent) { int PERCENT_DECIMAL_SHIFT = 2; return percent.movePointLeft(PERCENT_DECIMAL_SHIFT); }//from w ww. ja va 2 s. co m }