---
title: "localizedString(from:number:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/numberformatter/localizedstring(from:number:)"
---

# localizedString(from:number:)

Returns a localized number string with the specified style.

## Declaration

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

## Parameters

- `num`: The number to localize
- `nstyle`: The localization style to use. See doc://com.apple.foundation/documentation/Foundation/NumberFormatter/Style for the supported values.

## Return Value

Return Value An appropriately formatted NSString.

## See Also

### Converting Between Numbers and Strings

- [getObjectValue(_:for:range:)](foundation/numberformatter/getobjectvalue(_:for:range:).md)
- [number(from:)](foundation/numberformatter/number(from:).md)
- [string(from:)](foundation/numberformatter/string(from:).md)
