FANDOM



:min(valueA, valueB)

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

:min(list)

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

:min(listA, listB)

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

:min(value, list)

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

Location Edit

  • MATH
  • NUM
  • 6:min(

Example Edit

:ClrHome
:Prompt A,B
:Disp "THE SMALLER NUM", "IS"
:Output(4,4,min(A,B)

This uses the first variant of min. It prompts for two numbers. Then it prints the smaller of the two numbers, using the min 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.