# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F4ShacKDSVeOlLE40nsmi%2F0.png?alt=media)

**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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FT15aON3Zfp5tgfwrM3NP%2F1.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fn4FUlrvTvzrDKz80Mq4I%2F2.png?alt=media" alt=""><figcaption></figcaption></figure>
