Decimal

public extension Decimal
  • Wrapper around the Objective-c code needed to round a Decimal

    Declaration

    Swift

    func rounded(scale: Int, roundingMode: NSDecimalNumber.RoundingMode) -> Decimal
  • Wrapper around the Objective-c code needed to return an Int from a decimal

    Declaration

    Swift

    func intValue() -> Int