I am trying to calculate a percentage.
numberMatchedEntries = 20double percentage = (numberMatchedEntries / numberEntriesFile1) * 100;
numberEntriesFile1 = 52
So the output would be about: 38.1%
But from this code:
(numberMatchedEntries / numberEntriesFile1)
I only get 0 back, and not 0,381
I tried using a float too, but it still keeps 0.
And I realy don't know why?