I might be missing something simple here, but when I divide two numbers that definately should not equal 0, I'm getting 0.
I've tried forcefully casting the values. SongDuration, originalSongDuration are integers. I need the percentage to be a float.
System.out.print("SongDuration: " + songDuration + " :: originalSongDuration: " + originalSongDuration + " :: percentage: " + (float) ((int)songDuration / (int)originalSongDuration));
[17:43:03 INFO]: SongDuration: 64746 :: originalSongDuration: 140746 :: percentage: 0.0
Thanks.