RHEMUtils.java [src/java/rhem/utils] Revision: 04d92a79e510b8a8ca9a0794c9b6355aec819ca0  Date: Mon Sep 25 15:39:36 MDT 2017
/*
 * $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 rhem.utils;

/**
 *
 * @author rumpal
 */
public class RHEMUtils {
    
    public static final String[] MONTH_NAMES_LIST = {"January", "February", "March", "April", "May",
            "June", "July", "August", "September", "October", "November", "December"};

    //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);
    }

}