Found that as an Integer/Float converaion bug yesterday. But there is still another bug, so it might take until tomorrow until i finish the next update.
I don't want to revive some troll but java floats are 32bit IEEE 754 numbers
It is not recommended to make calculations in Java floats.
Use integer even with multiplying them for greater detail then divide them into a result float for display format purpose.
If you absolutely need to deal with floating point, either use something with more precision like BigDecimal from java.math.BigDecimal or double wich are 64bit IEEE754, not as precise but still better than float.
If you need exact values, don't use float or double at all.