Java Double Number Round round(double[] arr)

Here you can find the source of round(double[] arr)

Description

round

License

BSD License

Declaration

public static double[] round(double[] arr) 

Method Source Code

//package com.java2s;
//License from project: BSD License 

public class Main {
    public static double[] round(double[] arr) {
        double[] result = new double[arr.length];
        for (int i = 0; i < arr.length; i++) {
            result[i] = Math.round(arr[i]);
        }/* ww w .  j  a  v a2s  .c  o  m*/
        return result;
    }
}

Related

  1. round(double x)
  2. round(double x)
  3. round(double x, int numPlaces)
  4. round(double x, int places)
  5. round(double zahl, int stellen)
  6. round(double[] array, int decimals)
  7. round(double[][] data)
  8. round(final double num)
  9. round(final double num, final int prec)