I want to get percentage of download in label. I use this code:
cell.label?.text = "\( (CGFloat(totalBytesWritten) / CGFloat(totalBytesExpectedToWrite)) * 100)"
But in this case I get numbers of percentage after the point.
I tried to use different code but it not help:
cell.label?.text = "\( (Int(totalBytesWritten) / Int(totalBytesExpectedToWrite)) * 100)"
How to get percentage like this 98%
and not like this 98.5353457%
?