NMPTUtils.java [src/java/nmpt/utils] Revision: default  Date:
/*
 * $Id$
 *
 * This file is part of the Cloud Services Integration Platform (CSIP),
 * a Model-as-a-Service framework, API, and application suite.
 *
 * 2012-2017, OMSLab, Colorado State University.
 *
 * OMSLab licenses this file to you under the MIT license.
 * See the LICENSE file in the project root for more information.
 */
package nmpt.utils;

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

    public static double roundValues(double value, int places) {
        double power = Math.pow(10, places);
        return (Math.round(value * power) / power);
    }

}