Is there a way to have Java print all of the decimal places in a number, rather than showing it in scientific notation?
<p>I'm trying to profile the inside of a function to see which allocations are taking the longest. Each individual operation is quite tiny, thus I'm using <code>System.nanoTime()</code> to gather all elapsed times. Being that these times are super small, Java prints out their numbers in scientific notation, which is fine, I'd just rather see the full number so I can quickly compare a set of numbers without having to look back and forth between their exponents. </p>

<h3>Code Setup:</h3>

<pre><code>System.out.println("Time to taken to allocate data: " + 
                       (System.nanoTime() - startTime)/1000000000.0);
</code></pre>

<h3>Code output:</h3>

<pre><code>Time taken to allocate: 5.7987E-4
</code></pre>

<p>I would prefer, if possible, the output to look like this: </p>

<pre><code>Time taken to allocate: 0.00057987
</code></pre>

<p>A bit trivial, but it would make it a bit easier for me to quickly parse. </p>
