4 Replies
you're using integers, they can only represent whole numbers
3/4 is 0
you need to make at least one number a floating point number to coerce the rest into being floating point
like (3 / 4f) * 100
Or for additional precision, cast one of the numbers into a double.
Thanks
Closed!