What's the formula for Banker's rounding in Swift language?
For example: 134.5675 becomes 134 and 135.5345 becomes 136
Thus far I've tried something like this:
extension Double {
func roundHalfToEven() -> Double {
return round(self * 100) / 100
}
}
But it's nowhere near returns what I need.