Double

extension Double
  • Returns this value rounded to a number of decimal places

    Declaration

    Swift

    public func rounded(toDecimalPlaces places: Int) -> Double