> For the complete documentation index, see [llms.txt](https://200ok.gitbook.io/200ok-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://200ok.gitbook.io/200ok-documents/user-manual/built-in-functions/math/average.md).

# average

average() function is the Standard function available in 200OK.

**Description** : The average function computes the average of provided numerical values.

**Syntax** : fx\_average()

**Example** : fx\_average(1, 2, 3, 6) results in the output 3.

Here we go with simple scenario using the above function.

**Scenario** : The HR department of a company aims to determine the average salary of employees across various departments to assess overall compensation structures and make informed decisions regarding salary adjustments and benefits packages.

**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/rsRU-xCvvC-PnW6GeY3ANotdVcNq_eB521BRAG7vJievhsh52rnWMhBqKDJz8Cet86K21WQS8_FJe6nlEBjs2-2kVJYyybBJLrNibrFysMz8rWTLvKg406Tkvw-W0ENnAq0tj_hA-fGl4eD_CQff3IY" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/9SyAO_brjR79DIu73GNtt6g0SQ_obULs_cYOjbteWBuDxpCSa4eVref2o7Nt37fXJ8y1UbhOiH663R6mX8eWrKbCfdXEK_mnx-PANP-cDtyjtNSLeqW0Ln-4yCwcd221Dm6TXFPhuFUU-nWjpDQ5MDA" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/W-rzIC1yHGqk7kI6btHtMbKbN56co_iuJBkRYAIUJzckILLYEVfTOryOPNopAuBhQnFthu_5WbEHZkYpcpx3dUyLht0AoiopL95ByHtZyw1rviT217RKeDLGtu7qvSPw_V56vlQRSmySzFZEJSefo2E" alt=""><figcaption></figcaption></figure>
