tech.grasshopper.reporter.util.NumberUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pdfextentreporter Show documentation
Show all versions of pdfextentreporter Show documentation
Creating Extent reports in PDF format
The newest version!
package tech.grasshopper.reporter.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;
}
}