# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://200ok.gitbook.io/200ok-documents/user-manual/built-in-functions/math/average.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
