Can anyone tell me how to round a double value to x number of decimal places in Swift?
I have:
var totalWorkTimeInHours = (totalWorkTime/60/60)
Not Swift but I'm sure you get the idea.
pow10np = pow(10,num_places); val = round(val*pow10np) / pow10np;