Here you can find the source of doubleToBinaryString(double value)
public static String doubleToBinaryString(double value)
//package com.java2s; /**/*from w ww . j a v a 2 s . co m*/ * Copyright (c) 2014 Sa?l Pi?a <sauljabin@gmail.com>. * * This file is part of GeneticAlgorithm. * * GeneticAlgorithm is licensed under The MIT License. * For full copyright and license information please see the LICENSE file. */ public class Main { public static String doubleToBinaryString(double value) { return (value < 0 ? "1" : "0") + Long.toBinaryString(Double.doubleToLongBits(Math .abs(value))); } }