Here you can find the source of roundOffValues(double[] doubles)
public static double[] roundOffValues(double[] doubles)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] roundOffValues(double[] doubles) { double[] returnDoubles = new double[doubles.length]; for (int i = 0; i < doubles.length; i++) { returnDoubles[i] = Math.round(doubles[i]); }/*www .jav a 2s . c om*/ return returnDoubles; } }