# Min (Decimal)

| **Name**    | ***Min (Decimal)***                                                                        |
| ----------- | ------------------------------------------------------------------------------------------ |
| Syntax      | Min (Decimal first, Decimal second)                                                        |
| Purpose     | To return the smaller of two decimal values.                                               |
| Description | Returns the minimum of two decimal values.                                                 |
| Return Type | Decimal                                                                                    |
| Paramaters  | <p>first \[System.Decimal] – First value</p><p>second \[System.Decimal] – Second value</p> |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(33\).png)

**Example**

In this example, we are passing decimal values to the function transformation object using a *Variables* object.

**Note:** This function also takes into account negative values.

Where,

*first* = 1.23

*second* = 3.21

<figure><img src="https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20(34).png" alt=""><figcaption></figcaption></figure>

In the output window, you can see that the smaller decimal value has been returned.

<figure><img src="https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20(34).png" alt=""><figcaption></figcaption></figure>
