There is an implicit cast to float here.  Should be (float)(getBalance() / number)