<?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, output the remainder
	</digest>
	<description>
		<o>%</o> takes two numbers, divides one by the other and outputs the remainder of the division.
	</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-value" optional="1" type="int">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				Sets an initial value for the divisor. If there is no argument, the divisor is set to <m>1</m> initially.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				In left inlet: Performs the operation with the numbers currently stored.
			</digest>
			<description>
				In left inlet: Performs the operation with the numbers currently stored.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				In left inlet: The number is divided by the number in the right inlet, and the remainder is sent out the outlet.
			</digest>
			<description>
				In left inlet: The number is divided by the number in the right inlet, and the remainder is sent out the outlet.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Converted to <m>int</m>.
			</digest>
			<description>
				Converted to <m>int</m>.
			</description>
		</method>
		<method name="in1">
			<arglist>
				<arg name="divisor" optional="0" type="int" />
			</arglist>
			<digest>
				In right inlet: The number is stored as the divisor (the number to be divided into the number in the left inlet)
			</digest>
			<description>
				In right inlet: The number is stored as the divisor (the number to be divided into the number in the left inlet) for calculating the remainder.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="set-input" optional="0" type="int" />
			</arglist>
			<digest>
				Sets the number to be divided without causing output (<m>bang</m> will output it).
			</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="number-divided and divisor" optional="0" type="list" />
			</arglist>
			<digest>
				In left inlet: The first number is divided by the second number, and the remainder is sent out the outlet.
			</digest>
			<description>
				In left inlet: The first number is divided by the second number, and the remainder is sent out the outlet.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="modulo.png" caption="Find the remainder of a division" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="expr" />
		<seealso name="!/" />
		<seealso name="/" />
		<seealso name="basicchapter06" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				When the two numbers in the inlets are divided, the remainder is sent out the outlet. <o>%</o> is called the modulo operator.
			</description>
		</entry>
	</misc>
</c74object>
