Java Double to Long doubleToLongArray(final double value)

Here you can find the source of doubleToLongArray(final double value)

Description

double To Long Array

License

Apache License

Declaration

static final long[] doubleToLongArray(final double value) 

Method Source Code

//package com.java2s;
/*/* w w  w .j  a  v  a 2s. c o  m*/
 * Copyright 2015-16, Yahoo! Inc.
 * Licensed under the terms of the Apache License 2.0. See LICENSE file at the project root for terms.
 */

public class Main {
    static final long[] doubleToLongArray(final double value) {
        final double d = (value == 0.0) ? 0.0 : value; // canonicalize -0.0, 0.0
        final long[] array = { Double.doubleToLongBits(d) }; // canonicalize all NaN forms
        return array;
    }
}

Related

  1. doubleToLong(Double aVal)
  2. doubleToLong(double d)
  3. doubleToLong(double[] values)
  4. doubleToLong(final double d)
  5. DoubleToLong_With_Little_Endian(double dd)
  6. doubleToLongBits(double val)
  7. doubleToLongBits(double value)
  8. doubleToLongBits(final double d)
  9. doubleToLongBits(final double v)