Contents

localizedString(from:number:)

Returns a localized number string with the specified style.

Declaration

class func localizedString(from num: NSNumber, number nstyle: NumberFormatter.Style) -> String

Parameters

  • num:

    The number to localize

  • nstyle:

    The localization style to use. See Style for the supported values.

Return Value

An appropriately formatted NSString.

See Also

Converting Between Numbers and Strings