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

cn.hippo4j.starter.toolkit.CalculateUtil Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
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