<doc>
  <legacy_id>2011</legacy_id>
  <name>min</name>
  <type>function</type>
  <syntax>
    <example>min(<i>numbersList</i>)</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Math, Logic, &amp; Dates</category>
  </classification>
  <references>
    <function tag="sum">sum Function</function>
    <function tag="average">average Function</function>
    <function tag="extents">extents Function</function>
    <operator tag="&lt;=">&lt;= Operator</operator>
    <operator tag="&lt;">&lt; Operator</operator>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
    <changed version="1.1"></changed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the smallest number of a list of numbers.</summary>
  <examples>
    <example>min(12,3,8,7) <code><i>-- returns 3</i></code></example>
    <example>min(0,8,-436) <code><i>-- returns -436</i></code></example>
  </examples>
  <description>
    <p>Use the <b>min</b> <control_st tag="function">function</control_st> to find the lowest <function tag="value">value</function> in a <command tag="group">group</command> of <glossary tag="value">values</glossary>.</p><p/><p><b>Parameters:</b></p><p>The <i>numbersList</i> is a comma-separated list of numbers, or an <glossary tag="expression">expression</glossary> that <glossary tag="evaluate">evaluates</glossary> to such a list, or an <glossary tag="array">array</glossary> containing only numbers.</p><p/><p><b>Value:</b></p><p>The <b>min</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a number.</p><p/><p><b>Comments:</b></p><p>You can use the <b>min</b> and <function tag="max">max</function> <glossary tag="function">functions</glossary> together to limit a <function tag="value">value</function> to a certain <glossary tag="range">range</glossary>. For example, the expression</p><p><code/>  min(1,max<i>(myValu</i>e,0))</p><p>yields a number between zero and 1. If<i> myValu</i>e is within the limits, the <glossary tag="expression">expression</glossary> is equal to<i> myValu</i>e; if it is greater than 1, the <glossary tag="expression">expression</glossary> <glossary tag="evaluate">evaluates</glossary> to 1; and if it is less than zero, the <glossary tag="expression">expression</glossary> <glossary tag="evaluate">evaluates</glossary> to zero.</p><p/><p>If the <i>numbersList</i> is empty, the <b>min</b> <control_st tag="function">function</control_st> returns zero.</p><p/><p><b>Changes:</b></p><p>The ability to use an array was introduced in version 1.1. In previous versions, only lists of numbers could be used with the <b>min</b> <control_st tag="function">function</control_st>.</p>
  </description>
</doc>