<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="/" module="max" category="Math">
	<digest>
		Divide two numbers
	</digest>
	<description>
		Divides two numbers (according to the specified divisor assignment), and then outputs the result.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Math
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Set Left Operand, Trigger the Calculation
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Set Right Operand
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Result = Left / Right
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="initial" optional="1" type="int or float">
			<digest>
				Initial divisor
			</digest>
			<description>
				Sets an initial value for the divisor. If there is no argument, the divisor is set to <m>1</m> initially. A float argument causes the numbers to be divided as floats. (Division by 0 is not allowed. Int division by 0 will have the same result as dividing by 1. Float division by 0 will always cause an output of -2
				<sup>
					31
				</sup>
				.)
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Output most recent calculation
			</digest>
			<description>
				In left inlet: Performs the division with the numbers currently stored.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Divide and output results
			</digest>
			<description>
				In left inlet: The number is divided by the number in the right inlet, and the result is sent out the outlet.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Divide and output results
			</digest>
			<description>
				Converted to <m>int</m>, unless <o>/</o> has a float argument.
			</description>
		</method>
		<method name="in1">
			<arglist>
				<arg name="divisor" optional="0" type="int" />
			</arglist>
			<digest>
				Set the divisor
			</digest>
			<description>
				In right inlet: The number is stored as the divisor (the number to be divided into the number in the left inlet).
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Divide with no output
			</digest>
			<description>
				Sets the number to be divided without causing output (<m>bang</m> will output it).
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input and divisor" optional="0" type="list" />
			</arglist>
			<digest>
				Set both values, output calculation
			</digest>
			<description>
				In left inlet: The first number is divided by the second number, and the result is sent out the outlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="div.png" caption="Remainder is discarded.......... Floats are truncated before division........... ......unless there is a float argument" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="rdiv" display="!/" type="refpage">
			Division object (inlets reversed)
		</seealso>
		<seealso name="expr" />
		<seealso name="%" />
		<seealso name="basicchapter06" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				The two numbers in the inlets are divided, and the result is sent out the outlet.
			</description>
		</entry>
		<entry name="float">
			<description>
				Only if there is an argument with a decimal point.
			</description>
		</entry>
	</misc>
</c74object>
