/** * Round a float value to a specified number of decimal * places. Calls round(double,int) internally. * * @param val the value to be rounded. * @param places the number of decimal places to round to. * @return val rounded to places decimal places. * @since 1.1.0 */ public static float round(float val, int places) { return (float)round((double)val, places); }
/** * Round a float value to a specified number of decimal * places. Calls round(double,int) internally. * * @param val the value to be rounded. * @param places the number of decimal places to round to. * @return val rounded to places decimal places. * @since 1.1.0 */ public static float round(float val, int places) { return (float)round((double)val, places); }