---
title: decimalSeparator
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nslocale/decimalseparator
---

# decimalSeparator

The decimal separator for the locale.

## Declaration

```swift
var decimalSeparator: String { get }
```

## Discussion

Discussion Example decimal separators include "." and ",". This property contains the same value returned by the object(forKey:) method when passing the decimalSeparator key.

## See Also

### Getting Information About a Locale

- [localeIdentifier](foundation/nslocale/localeidentifier.md)
- [countryCode](foundation/nslocale/countrycode.md)
- [languageCode](foundation/nslocale/languagecode.md)
- [scriptCode](foundation/nslocale/scriptcode.md)
- [variantCode](foundation/nslocale/variantcode.md)
- [exemplarCharacterSet](foundation/nslocale/exemplarcharacterset.md)
- [collationIdentifier](foundation/nslocale/collationidentifier.md)
- [collatorIdentifier](foundation/nslocale/collatoridentifier.md)
- [usesMetricSystem](foundation/nslocale/usesmetricsystem.md)
- [groupingSeparator](foundation/nslocale/groupingseparator.md)
- [currencyCode](foundation/nslocale/currencycode.md)
- [currencySymbol](foundation/nslocale/currencysymbol.md)
- [calendarIdentifier](foundation/nslocale/calendaridentifier.md)
- [quotationBeginDelimiter](foundation/nslocale/quotationbegindelimiter.md)
- [quotationEndDelimiter](foundation/nslocale/quotationenddelimiter.md)
