Min (Integer)
Name | Min (Integer) |
Syntax | Min (Integer first, Integer second) |
Purpose | To return the smaller of two integer values. |
Description | Returns the minimum of two integer values. |
Return Type | Int64 |
Parameters | first [System.Int64] – First value second [System.Int64] – Second value |
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F0%2520%2847%29.png&width=768&dpr=4&quality=100&sign=a78f2bb&sv=1)
Example
In this example, we are passing integer values to the function transformation object using a Variables object.
Where,
first = 1234
second = 4321
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F1%2520%2848%29.png&width=768&dpr=4&quality=100&sign=96379965&sv=1)
In the output window, you can see that the smaller integer value has been returned.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F2%2520%2848%29.png&width=768&dpr=4&quality=100&sign=1967d78c&sv=1)