> For the complete documentation index, see [llms.txt](https://help.pickzen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickzen.com/guides/nocode/functions/trunc.md).

# TRUNC

### Syntax

**TRUNC(object, \[count])**

| Argument name                                 | Description                                   |
| --------------------------------------------- | --------------------------------------------- |
| <p><strong>object</strong></p><p>Required</p> | List of items or text string to be truncated. |
| <p><strong>count</strong></p><p>Required</p>  | Number of items, or characters to retain.     |

### Examples

If:

* &#x20;list = \[a, b, c, d]
* name = 'John Smith'

When the following functions are executed:&#x20;

![](/files/-MA6BsxGKFkt-ygmlBxK)

Results will be:

* out1 = \[a, b]
* out2 = 'John'
