Double

extension Double
  • Return a new Double that has been squared

    Declaration

    Swift

    public func squared() -> Double
  • Square the receiver

    Declaration

    Swift

    public mutating func square()