Java Double to Byte doubleToByte(double[] values)

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

Description

double To Byte

License

Open Source License

Declaration

public static byte[] doubleToByte(double[] values) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] doubleToByte(double[] values) {
        if (values == null) {
            return null;
        }/*from w  w  w. j  av  a 2s . co  m*/

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

Related

  1. Double2Byte(double i)
  2. doubleToByte(double d)
  3. doubleToByte(double d)
  4. doubleToByte(double d)
  5. doubleToByte(double i_Value)
  6. doubleToByte(final double value)