<?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="abs" module="max" category="Math">
	<digest>
		Calculate an absolute value
	</digest>
	<description>
		Outputs the absolute (non-negative) value of any given number. Floats will be output only if the argument to <o>abs</o> is a float.
	</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>
				Input for Absolute Value
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Absolute Value of Input
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="format" optional="1" type="number">
			<digest>
				Output format
			</digest>
			<description>
				Float argument forces a float output.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Output the absolute value
			</digest>
			<description>
				The absolute (non-negative) value of the input is sent out the output.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Output the absolute value
			</digest>
			<description>
				Converted to <m>int</m>, unless <o>abs</o> has a float argument.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="abs.png" caption="Output is non-negative........Used here to invert input" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="expr" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				The absolute value of the input.
			</description>
		</entry>
		<entry name="float">
			<description>
				Floats are output only if there is an argument with a decimal point.
			</description>
		</entry>
	</misc>
</c74object>
