Numeric extensions in Swift