FANDOM



:max(valueA, valueB)

In this form, the function returns whichever of the two numbers is greater.

:max(list)

In this form, the function returns the largest number in the list.

:max(listA, listB)

This returns a list with the maximum values for each value in each spot. For example: max({1,4},{2,3}) would return {2,4}

:max(value, list)

This returns a list in which every value in list which is less than value is replaced with value

Location Edit

  • MATH
  • NUM
  • 7:max(

Example Edit

:ClrHome
:Prompt A,B
:Disp "THE LARGER NUM", "IS"
:Output(4,4,max(A,B)

This uses the first variant of max. It prompts for two numbers. Then it prints the larger of the two numbers, using the max function and not an if/else statement.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.