I have a strange bug, I am able to receive two different values from the server successfully and when I do Math calculations for them the returned value is always zero.
My code is very simple
val achievedViews = campaign.achievedViews
val totalViews = campaign.totalViews
val percentage = (achievedViews.div(totalViews)).times(100)
By logging my code I can see I got the value of both achievedViews and totalViews, but percentage is always zero even though I didn't initiate its value by anything.
I cant figure out what is the reason for this strange behavior and why the returned value is always zero?