RHEMUtils.java [src/java/rhem/utils] Revision: d0a84820915c63c2af7a10173621b3a7ea9d12e2  Date: Wed Oct 12 12:07:01 MDT 2016
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rhem.utils;

/**
 *
 * @author rumpal
 */
public class RHEMUtils {

    //Round the value of a float or double
    public static double roundValues(double value, int places) {
        double power = Math.pow(10, places);
        return (Math.round(value * power) / power);
    }

}