I'm trying to convert an Integer to a Float since I need to use some math and need the decimals offered by floats.
public static Float currAccu() {
float accuMiss, accuHit, accuCrit;
accuMiss = Float.parseFloat(publicInt.returnMissCount());
accuHit = Float.parseFloat(publicInt.returnHitCount());
accuCrit = Float.parseFloat(publicInt.returnMissCount());
return 0;
The code is incomplete and I'm pretty new at Java. I've used to the Float.parseFloat to convert string to float before. The return will be different, but until I get the conversion working I will continue to fix it.