MIN()

MIN(X,Y)

RETURNS THE LESSER OF X AND Y

  • Type: Function
  • Parameters: 2
  • Group: Mathematics

ACTION

The function MIN(X,Y) returns the lesser of X and Y.

X and Y can be a real or integer number.

SYNTAX: Result=MIN(X,Y)

  • X = real or integer value.
  • Y = real or integer value.

USE

  • The function MIN() is used to get the lesser of X and Y.

ERROR

  • If X or Y are not correct expressions.

EXAMPLE

print min(153.1, 151.3)

print "Result = 151.3"

SEE ALSO

MAX()