<?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 input from a number
	</digest>
	<description>
		Divides a number by the incoming value. Functions like the <o>/</o> object, but the inlets' functions are reversed.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			math
		</metadata>
		<metadata name="reference">
			TEXT_HERE
		</metadata>
		<metadata name="license">
			TEXT_HERE
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Right Operand in Left Inlet!
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Left Operand in Right Inlet!
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Quotient Out
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="divisor" optional="1" type="number">
			<digest>
				The initial divisor value
			</digest>
			<description>
				Sets an initial value for the divisor. If there is no argument, the divisor is set to 1 initially. A float argument causes the numbers to be divided as floats.
			</description>
			<discussion>
				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^31.
			</discussion>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Performs the division with current values
			</digest>
			<description>
				In left inlet: Performs the division with the numbers currently stored.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" type="int" />
			</arglist>
			<digest>
				Divide the stored value with divisor input
			</digest>
			<description>
				Stores the value as the divisor (the number to be divided into the number in the right inlet) and produces output.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" type="float" />
			</arglist>
			<digest>
				See the <m>int</m> message
			</digest>
			<description>
				Converted to <m>int</m>, unless <o>!/</o> has a float argument.
			</description>
		</method>
		<method name="ft1">
			<arglist>
				<arg name="input" type="float" />
			</arglist>
			<digest>
				See the <m>in1</m> message
			</digest>
			<description>
				Converted to <m>int</m>, unless <o>!/</o> has a float argument.
			</description>
		</method>
		<method name="in1">
			<arglist>
				<arg name="input" type="int" />
			</arglist>
			<digest>
				Store a dividend
			</digest>
			<description>
				Numbers received in the right inlet are divided by numbers received in the number in the left inlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="rdiv.png" caption="/ with the inputs swapped" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="/" />
		<seealso name="expr" />
	</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>
