I have two int numbers a, b always >= 0. I want to divide a by b and return the rounded up percentage to the nearest integer.
Example: 18/38 should return 47 and 13/38 should return 34.
How can I accomplish this?
I tried the following but it didn't work
c = Math.round(a/b) * 100;