min_of()min_of()

返回几个计算的数值表达式的最小值。Returns the minimum value of several evaluated numeric expressions.

min_of(10, 1, -3, 17) == -3

语法Syntax

min_of (expr_1, expr_2 ...)min_of (expr_1, expr_2 ...)

参数Arguments

  • expr_i:要计算的标量表达式。expr_i: A scalar expression, to be evaluated.
  • 所有参数的类型必须相同。All arguments must be of the same type.
  • 最多支持 64 个参数。Maximum of 64 arguments is supported.

返回Returns

所有参数表达式的最小值。The minimum value of all argument expressions.

示例Example

print result=min_of(10, 1, -3, 17) 
resultresult
-3-3