Hello.
Thats simple.
If you want floating or double values then change the type of the variables x and y respectively. You will have to use the parseXxx() of the corresponding wrapper class.
...