# SEPARATOR

Use the SEPARATOR function to set custom delimiters for decimals and thousands.

### Syntax

```javascript
SEPARATOR.<TYPE>(VALUE)
```

### Arguments

TYPE - DECIMAL or THOUSAND depending on the separator you need to change.

VALUE - The custom separator to use instead of the default ones.

### Example

```
SEPARATOR.DECIMAL('d')
SEPARATOR.THOUSAND('t')
```

<figure><img src="https://content.gitbook.com/content/sB9HAei8v4FfKkH9M4gw/blobs/60CsY0ULE8dlmGPofEFJ/image.png" alt=""><figcaption><p>Separator function in a button variable</p></figcaption></figure>

When we click the buttons, the default '.' separator for decimal and ','  separator for thousands are replaced with 'd' and 't' respectively. The buttons use the SEPARATOR script options internally to change the separator.

<figure><img src="https://content.gitbook.com/content/sB9HAei8v4FfKkH9M4gw/blobs/ECWQWENnP4Z38xTc5Cd5/Untitled%20Project.gif" alt=""><figcaption><p>Changing the separator</p></figcaption></figure>
