# max

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

**Description** : The max function is designed to find and return the largest number from a specified array of numeric values.

**Syntax** : fx\_max()

**Example** : fx\_max(1,4,2,6,8) it checks the max value  and returns 8.

Here we go with simple scenario using the above function.

**Scenario** :  A teacher is grading exams and wants to determine the highest score achieved by a student in the class. They utilize a function to find the maximum score from the array of exam scores, facilitating the identification of the top-performing student.

<br>

**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/f_HrgeHFTSz8HIaulmJAD35J8HdsC1DGfRrlwQSWAOpzSV-mVPrAvpJrEiBEHk5uF601_oE7BdEOhPoAQQzEq1IlZRrB6EaADefzmOpu4vzNiPCdq_AN7ZYixJ8HIQPtuj27AAgk66gm7QtBZjL_yRE" alt=""><figcaption><p><strong>Passing the value inside the function</strong></p></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/vu19pZhywLg3ElraK1zc5ee1IVe53dxDBAaG27FQpdaND8GGey2V-3zalZad-IwFZXNdtxrT21BfQ4L-N0itBfB09xuKqkVwjuEDHJx2tOoRV6_kVlZn4cca1slhJsNCWR71NzQVRneTivVjC-UqL-c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/UGn4DxItP4jbr5M4mSlwCy2d2uCN7kId6IBO6PRrCFvQrltXyQmFRy7Jzq8sF3xzWVELd19MAE2xod8lzsYbplY7upVIR1ByWVlXuf5qzrrOu10veFtM5IvyVfJKhBDeF1pM5SX6opiELVxX-WVadPc" 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/max.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.
