MIN function

MIN function

Function Name Description Usage Input parameter Return value
MIN Finds the lowest value in an array. MIN() N/A Lowest value in an array.

Supported data type

The MIN function supports the following data types:

  • Double array
  • Integer array

Example 1: Find the lowest value in an integer array

Sample data: $var1$ = {5,8,2,1}

Usage: $var1$.MIN()

Return the lowest value in var1.

Output: 1

Example 2: Find the lowest value in a double array

Sample data: $var1$ = {2.5,6.1,4.9}

Usage: $var1$.MIN()

Return the lowest value in var1.

Output: 2.5

Recommendation

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月09日 UTC.