Java Number Round roundOffValues(double[] doubles)

Here you can find the source of roundOffValues(double[] doubles)

Description

round Off Values

License

Open Source License

Declaration

public static double[] roundOffValues(double[] doubles) 

Method Source Code

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

Related

  1. roundNumberToDouble(double value, int decimals)
  2. roundOff(double fraction, int precision)
  3. roundOffAmt(double dAmt)
  4. roundOffFileCount(int fileCount)
  5. roundOffTo2DecPlaces(double val)
  6. roundPhred(final double value, final double phredScorePrecision)
  7. roundPos(final float a)
  8. roundPositive(float value)
  9. roundPositive(float x)