NSNumber

extension NSNumber
  • formats the NSNumber to a readable currency formatted string that auto handles the decimal places.

    Declaration

    Swift

    public func toMoneyString(currencyCode: String, locale: Locale = .current) -> String
  • formats the NSNumber to a readable currency formatted string that forces the number of decimal places.

    Declaration

    Swift

    public func toMoneyString(currencyCode: String, decimalPlaces: Int) -> String
  • Undocumented

    Declaration

    Swift

    public func toCarbonString() -> String