cn.hippo4j.starter.toolkit.CalculateUtil Maven / Gradle / Ivy
package cn.hippo4j.starter.toolkit;
/**
* Calculate util.
*
* @author chen.ma
* @date 2021/8/15 14:29
*/
public class CalculateUtil {
/**
* Divide.
*
* @param num1
* @param num2
* @return
*/
public static int divide(int num1, int num2) {
return ((int) (Double.parseDouble(num1 + "") / Double.parseDouble(num2 + "") * 100));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy