> 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/floor.md).

# floor

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

**Description**  :  The floor function rounds down a decimal to the nearest integer, returning the largest integer value that is less than or equal to the input value.

**Syntax** : fx\_floor()

**Example** : fx\_Floor(39.99) it returns the value as 39.

Here we go with simple scenario using the above function.

**Scenario** : In a retail store, the manager is pricing items based on their cost. They use the fx\_floor function to determine the final selling price by rounding down the calculated price to the nearest whole dollar, ensuring competitive pricing and maximizing sales.

**Request Side** :&#x20;

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

<figure><img src="https://lh7-us.googleusercontent.com/xZV06OMORh2DS_Jn5i8aPfx0zU_QmkpEoxnagha46tsvYakp5xpA1usy_T-egn8AFJwkLD9JUsz6IQoGHNh1WR_hOtZX4ZH1U-W5zsaUCeOrZID25Ht__gP7B-cUFVhEcpGkM90CdCVzNSD9Q_OOHVA" alt=""><figcaption><p><strong>Passing the value inside the function using index pattern</strong></p></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/daJ9wAUgxzG_Fcco1Tv17yjWpWJbh6sYZ1zLPwAkNWO2EZfeN3-ER1d6Vg3EcBzeB8DArCu74Fl2mB7eo5_VCZGOzr8ZGnP0YBRDw7x9J_uZoJBzNDD2mqLPaa7JHNdck0gBl4WduUWbtyqu0-6cvzg" alt=""><figcaption></figcaption></figure>

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

**Response Side** :&#x20;

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

<br>

<figure><img src="https://lh7-us.googleusercontent.com/Jp34HM7pTmejqP-YamZtSXb82pN05yy3sp2g5YEBocr2EQOm1rdug2A1nN01yvacWVshm41EDo_2g11FtwImipxOHHhtqKYEefuQTH7scGa8HXtJ_k7kK5MC7-pUpBxh93ofy6sX7_vtkIda04_dy24" alt=""><figcaption></figcaption></figure>
