All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.grasshopper.pdf.util.NumberUtil Maven / Gradle / Ivy

There is a newer version: 2.14.0
Show newest version
package tech.grasshopper.pdf.util;

public class NumberUtil {

	public static double divideAndRound(int arg1, int arg2) {	
		double r = (arg1 * 1.0)/arg2;
		return Math.round(r * 100.0) / 100.0;
	}
	
	public static int divideToPercent(int arg1, int arg2) {	
		return (arg1 * 100)/arg2;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy