Java Double to Int doubleToInt(double[] values)

Here you can find the source of doubleToInt(double[] values)

Description

double To Int

License

Open Source License

Declaration

public static int[] doubleToInt(double[] values) 

Method Source Code

//package com.java2s;

public class Main {
    public static int[] doubleToInt(double[] values) {
        if (values == null) {
            return null;
        }//  ww w .  j  av a  2  s  . c o m

        int[] results = new int[values.length];
        for (int i = 0; i < values.length; i++) {
            results[i] = (int) values[i];
        }
        return results;
    }
}

Related

  1. doubleToInt(double d, boolean floor)
  2. doubleToInt(double d, int defaultValue)
  3. doubleToInt(double dble)
  4. doubleToInt(double deg)
  5. doubleToInt(double[] doubles)
  6. doubleToInt(double[][] array)
  7. doubleToInt100000(double d)
  8. doubleToInt64(Double r)
  9. doubleToInt64Bits(double d)