---
title: "NSDecimalString(_:_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nsdecimalstring(_:_:)"
---

# NSDecimalString(_:_:)

Returns a string representation of the decimal value appropriate for the specified locale.

## Declaration

```swift
func NSDecimalString(_ dcm: UnsafePointer<Decimal>, _ locale: Any?) -> String
```

## Parameters

- `dcm`: The decimal value to represent.
- `locale`: Either an instance of doc://com.apple.foundation/documentation/Foundation/NSLocale or a dictionary with a string value corresponding to the doc://com.apple.foundation/documentation/Foundation/NSLocale/Key/decimalSeparator key.
