How to convert negative double value to binary value in java?
<p>The following is the double value</p>

<pre><code>-1.2316741412499997E8
</code></pre>

<p>The following is the method i am using :</p>

<pre><code>Long.toBinaryString(Double.doubleToRawLongBits(-1.2316741412499997E8))
output: 1100000110011101010111011000101011011000011111111111111111111110
</code></pre>

<p>However when i tried doing it with value 2 i get the following output as shown below which is wrong.</p>

<pre><code>Long.toBinaryString(Double.doubleToRawLongBits(2.0))
output: 100000000000000000000000000000000000000000000000000000000000000
</code></pre>

<p>Will someone tell me how do i convert a  negative double value  to binary.Thanks in advance.</p>
