Here you can find the source of doubleToLongArray(final double value)
static final long[] doubleToLongArray(final double value)
//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; } }