MAX()

MAX(X,Y)

RETURNS THE GREATER OF X AND Y

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

ACTION

The function MAX(X,Y) returns the greater value of X and Y.

X and Y can be a real or integer number.

SYNTAX: Result=MAX(X,Y)

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

USE

  • The function MAX(X,Y) is used to get the greater value of X and Y.

ERROR

  • If X or Y are not correct expressions.

EXAMPLE

print max(153.1, 151.3)

print "Result = 153.1"

SEE ALSO

MIN()