Android - 1 divided by 2 = 0
<p>I have been trying to use my new IOIO for android, and needed to find a frequency of a signal.<br>
So I converted the signal to binary and then did 1 divided by the time between 1's. Although when I did this I found that I got 0 as my output. I then decided to see what 1 / 2 gave me, and to my surprise it also gave 0! Anyone have any idea why this is the case?</p>

<p>Code:
     <code>private float frequency = 1/2;</code>   </p>

<p>Could this be todo with using <code>Float.toString(frequency)</code>?</p>
