Java Double to Long doubleToLong(double[] values)

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

Description

double To Long

License

Open Source License

Declaration

public static long[] doubleToLong(double[] values) 

Method Source Code

//package com.java2s;

public class Main {
    public static long[] doubleToLong(double[] values) {
        if (values == null) {
            return null;
        }//w  w  w  .  j  a  va2s. co  m

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

Related

  1. doubleToLong(Double aVal)
  2. doubleToLong(double d)
  3. doubleToLong(final double d)
  4. DoubleToLong_With_Little_Endian(double dd)
  5. doubleToLongArray(final double value)
  6. doubleToLongBits(double val)