gistlib
main.swiftfunc roundDouble(value: Int) -> Double { if value > 1000 { return Double(value).rounded(toPlaces: 1) } else { return Double(value) } } 163 chars8 lines
func roundDouble(value: Int) -> Double { if value > 1000 { return Double(value).rounded(toPlaces: 1) } else { return Double(value) } }
gistlibby LogSnag