---
title: "description(withLocale:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsdecimalnumber/description(withlocale:)"
---

# description(withLocale:)

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

## Declaration

```swift
func description(withLocale locale: Any?) -> String
```

## Parameters

- `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.

## Discussion

Discussion This is a convenience method for calling the NSDecimalString(_:_:) function.

## See Also

### Accessing the Value

- [decimalValue](foundation/nsdecimalnumber/decimalvalue.md)
- [doubleValue](foundation/nsdecimalnumber/doublevalue.md)
- [objCType](foundation/nsdecimalnumber/objctype.md)
