You are viewing a single comment's thread. Return to all comments →
I have done the same but for me decimal is not getting displayed
Try to compare your code to mine in detail to see what's different. I use Java 8.
Did you use floating point type variables for storing the counts? If you used ints instead, then you'll get an integer results for someDivisor / someDividend.
someDivisor / someDividend