How to Set a Float Variable


1. Declare a Float Variable named myFloat.

2. Add the below line to the onCreate method. This will set the float variable named myFloat to 3.8644f.

myFloat = 3.8644f;

3. Compile and run!

Resources:
http://developer.android.com/reference/java/lang/Float.html