Syntax
- float min(a, b)
Parameters
- a—(float, string)
- b—(float, string)Must have the same type as a .
Returns
Returns minimum of a and b.
Description
The min function finds the minimum of a and b. It also works if a and b are strings.
Related
Examples
min(10, -10)
# result = -10
min("abc", "def")
# result = "abc"