Syntax
- float min(a, b)
Parameters
- a—float or stringb must have the same type.
- b—float or stringa must have the same type.
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
example.1
min(10, -10)
# result = -10
example.2
min("abc", "def")
# result = "abc"