SignedNumeric

public extension SignedNumeric
  • SwifterSwift: String.

    Declaration

    Swift

    var string: String { get }
  • SwifterSwift: String with number and current locale currency.

    Declaration

    Swift

    var asLocaleCurrency: String? { get }

Methods

  • SwifterSwift: Spelled out representation of a number.

       print((12.32).spelledOutString()) // prints "twelve point three two"
    

    Declaration

    Swift

    func spelledOutString(locale: Locale = .current) -> String?

    Parameters

    locale

    Locale, default is .current.

    Return Value

    String representation of number spelled in specified locale language. E.g. input 92, output in “en”: “ninety-two”