<doc>
  <legacy_id>1251</legacy_id>
  <name>/</name>
  <type>operator</type>
  <syntax>
    <example><i>number/divisor</i></example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Math, Logic, &amp; Dates</category>
  </classification>
  <references>
    <operator tag="*">* Operator</operator>
    <operator tag="div">div Operator</operator>
    <command tag="divide">divide Command</command>
    <operator tag="mod">mod Operator</operator>
    <operator tag="wrap">wrap 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>Divides one number by another number.</summary>
  <examples>
    <example># Dividing a literal number by another</p><p>put 22/7 into approxPi <i>-- approximates pi</i></example>
    <example># Dividing two variables</p><p>get thisVariable/(thisVariable + 1)</example>
    <example># Dividing an array by another</p><p>local tNumberArray, tDivisorArray, tDividedArray</p><p>put 10 into tNumberArray[1]</p><p>put 20 into tNumberArray[2]</p><p>put 10 into tDivisorArray[1]</p><p>put 5 into tDivisorArray[2]</p><p>put tNumberArray / tDivisorArray into tDividedArray</p><p>put tDividedArray[1] &amp; comma &amp; tDividedArray[2]</p><p># The result is 1,4</example>
  </examples>
  <description>
    <p>Use the <b>/</b> (divide) <glossary tag="operator">operator</glossary> to divide one number by another.</p><p/><p><b>Parameters:</b></p><p>The operands <i>number</i> and <i>divisor</i> are numbers, or <glossary tag="expression">expressions</glossary> that <glossary tag="evaluate">evaluate</glossary> to numbers, or <glossary tag="array">arrays</glossary> containing numbers.</p><p/><p><b>Comments:</b></p><p>To divide the contents of a container by a number, use the <b>divide</b> <glossary tag="command">command</glossary> instead.</p><p/><p>If <i>number</i> is an <glossary tag="array">array</glossary>, each of the <glossary tag="array">array</glossary> <glossary tag="element">elements</glossary> must be a number. If an <glossary tag="array">array</glossary> is divided by a number, each <keyword tag="element">element</keyword> is divided by the number. If an <glossary tag="array">array</glossary> is divided by an <glossary tag="array">array</glossary>, both <glossary tag="array">arrays</glossary> must have the same number of <glossary tag="element">elements</glossary> and the same dimension, and each <keyword tag="element">element</keyword> in one <glossary tag="array">array</glossary> is divided by the corresponding <keyword tag="element">element</keyword> of the other <glossary tag="array">array</glossary>.</p><p/><p>If an element of an array is empty, the <b>/</b> <glossary tag="operator">operator</glossary> treats its contents as zero.</p><p/><p>Attempting to divide by zero causes an execution error.</p><p/><p><b>Changes:</b></p><p>The option to divide arrays was introduced in version 1.1. In previous versions, only single numbers could be used with the <b>/</b> <glossary tag="operator">operator</glossary>.</p>
  </description>
</doc>