Android - 1 divided by 2 = 0
I have been trying to use my new IOIO for android, and needed to find a frequency of a signal.                            
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?

Code:
     `private float frequency = 1/2;`   

Could this be todo with using `Float.toString(frequency)`?
Android - 1 divided by 2 = 0
===

I have been trying to use my new IOIO for android, and needed to find a frequency of a signal.                            
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?

Code:
     `private float frequency = 1/2;`   

Could this be todo with using `Float.toString(frequency)`?