This does NOT help:
extension Double {
func rounded(digits: Int) -> Double {
let multiplier = pow(10.0, Double(digits))
return (self * multiplier).rounded() / multiplier
}
}
Topic:
App & System Services
SubTopic:
General
Tags: