min function

Syntax

  • float min(a, b)
  • string min(a, b)
  • float[] min(a, b)
  • string[] min(a, b)

Parameters

  1. a—(float, string, float[], string[])
  2. b—(same type as a)

Returns

Returns minimum of a and b.

Related

Examples

min(10, -10)
# result = -10
min("abc", "def")
# result = "abc"

In this topic