How to display a result with many decimal points
<p>i am trying to display a result but it is just returning 0, even though if you calculate the answer it is not zero but needs more decimal points after the zero</p>

<p>the code :</p>

<pre><code>                long transferRate = ((len*2) / durationseconds ) ; //amount of data in bytes transferred in 1 second. Currently returning 0 for every result
                System.out.println("transferRate: " + transferRate + " bytes per second");
</code></pre>

<p>is the part i need to return an answer to many decimal places, how can i specify this ?</p>

<p>because currently it is displaying results :</p>

<pre><code>Time for the ping to be sent and recived of 2 bytes is 365636931 seconds
transferRate: 0 bytes per second
Time for the ping to be sent and recived of 4 bytes is 43375591 seconds
transferRate: 0 bytes per second
Time for the ping to be sent and recived of 8 bytes is 51079641 seconds
transferRate: 0 bytes per second
Time for the ping to be sent and recived of 16 bytes is 54751211 seconds
transferRate: 0 bytes per second
Time for the ping to be sent and recived of 32 bytes is 57195731 seconds
transferRate: 0 bytes per second
Time for the ping to be sent and recived of 64 bytes is 48524461 seconds
transferRate: 0 bytes per second
Time for the ping to be sent and recived of 128 bytes is 51243251 seconds
transferRate: 0 bytes per second
</code></pre>

<p>Thanks</p>
