get minimum value

get minimum value

Hello, 

can you help me with the code how to get minimum value in a form? My client has multiple purchase prices for a product. I need the lowest value of the prices.

Thanks