Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These functions are used for obtaining minimum value from a given range.

minl(List) → number

This function designed to calculate the minimum value from a list of numeric values or elements.

min(number 1,number 2,...,number n) → number

This function designed to calculate the minimum value from a series of numbers.

Example:

Code Block
<O N="minlObject1" T="Project" Category="Functions" TransAlignRule="1">
    <!-- created by ParamML Examples on 8/21/2023 -->
    <P N="List1" V="[0,1,2,3,4,5,6,7,8,9]" />
    <P N="MinLOfList" V="minl(List1)" />
    <P N="MinOFList" V="min(0,1,2,3,4,5,6,7,8,9)" />
</O>
Image Added

 

As demonstrated, both of the functions return as 0. The difference lies in the way the functions are called and the argument format they accept.

To view this example in the library, see (https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objiddcak5gnzhwuseaxd7m4w4h )