---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, PMD Scripting, Scripts]
nav: wcp_docs
parent_url: /wcp_docs/
title: max (collection)
layout: subsection
---

## <a id="section_m3p_myb_5db"></a>Description

Returns the maximum number in a collection. The collection can be either a list or set of numbers.

## <a id="section_cyq_j1m_zsb"></a>Return Type

`Integer` or `Decimal`, depending on the type of the maximum number.

## <a id="section_dz5_pwg_5db"></a>Namespace Function Syntax

```
number:max([number1, numberN])
```

```
number:max({number1, numberN})
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>[number1, numberN] or {number1, numberN}</td><td>A list or a set containing numbers to compare.</td></tr></tbody></table><br/>

<b>Example</b>

`number:max([3, 2, 45])`

Returns `45`

`number:max({99, -1, 24.09, 63, -8, -8.28})`

Returns `99`

