<?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="flonum" module="max" category="U/I">
	<digest>
		Display and output a number
	</digest>
	<description>
		Display, input, and output floating-point numbers in a number box.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			U/I
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Set Displayed Number and Repeat to Output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Output Incoming or Entered Number
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				bang When Tab Key Pressed
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<palette category="Basic" action="flonum" order="7" pic="flonum.svg" />
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--parameter-->
	<parameter />
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Output the current value
			</digest>
			<description>
				Sends the currently displayed number out the outlet.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Convert, store, display and output value
			</digest>
			<description>
				The number received in the inlet is stored and displayed in the <link name="flonum" type="refpage">number box</link> and sent out the outlet.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Store, display and output value
			</digest>
			<description>
				The number received in the inlet is stored and displayed in the <link name="flonum" type="refpage">number box</link> and sent out the outlet.
			</description>
		</method>
		<method name="max">
			<arglist>
				<arg name="maximum-value" optional="0" type="list" />
			</arglist>
			<digest>
				Set the maximum value limit
			</digest>
			<description>
				The word <m>max</m>, followed by a number, sets the maximum value that can be displayed or sent out by the <link name="flonum" type="refpage">number box</link>. The word <m>max</m> by itself sets the maximum to None (removes a prior maximum value constraint).
			</description>
		</method>
		<method name="min">
			<arglist>
				<arg name="minimum" optional="0" type="list" />
			</arglist>
			<digest>
				Set the minimum value limit
			</digest>
			<description>
				The word <m>min</m>, followed by a number, sets the minimum value that can be displayed or sent out by the <link name="flonum" type="refpage">number box</link>. The word <m>min</m> by itself sets the minimum to None (removes a prior minimum value constraint).
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Edit and output the float value
			</digest>
			<description>
				Clicking and dragging up and down on the number box with the mouse (when the patcher window is locked) moves the displayed value up and down, and outputs the new values continuously.
				<br />
				In the float number box, dragging to the left of the decimal point changes the value in increments of 1. Dragging to the right of the decimal point changes the fractional part of the number in increments of 0.01.
				<br />
				When the active patcher window is locked, numbers can be entered into a number box by clicking on it with the mouse and typing in a number on the computer keyboard. Typing the Return or Enter keys on Macintosh or the Enter key on Windows, or clicking outside the number box, sends the number out the outlet.
			</description>
		</method>
		<method name="select">
			<arglist />
			<digest>
				Select for keyboard input
			</digest>
			<description>
				The word <m>select</m> will make the number box active so that you can type numbers straight into it (click on any empty space in a locked patcher to deselect it).
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Store and display value with no output
			</digest>
			<description>
				The word <m>set</m>, followed by a number, sets the stored and displayed value to that number without triggering output.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="bgcolor" get="1" set="1" type="float" size="4">
			<digest>
				Background Color
			</digest>
			<description>
				Sets the color for the <link name="flonum" type="refpage">number box</link> object's displayed/unclicked background.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="1. 1. 1. 1." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Background Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="bordercolor" get="1" set="1" type="float" size="4">
			<digest>
				Border Color
			</digest>
			<description>
				Sets the color for the <link name="flonum" type="refpage">number box</link> object's outline.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0.5 0.5 0.5 1." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Border Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute_rgb_legacy name="brgba" get="1" set="1" type="float" size="4">
			<digest>
				Legacy RGB alias
			</digest>
			<description>
				<m>brgba</m> is a legacy RGB alias for the <at>bgcolor</at> RGBA attribute. See <link type="vignette" module="core" name="maxcolor">here</link> for more information.
			</description>
			<attributelist>
				<attribute name="alias" get="1" set="1" type="symbol" size="1" value="bgcolor" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute_rgb_legacy>
		<attribute name="cantchange" get="1" set="1" type="int" size="1">
			<digest>
				Can't Change
			</digest>
			<description>
				Toggles the ability to disallow changes with the mouse or the computer keyboard. The default is 0 (mouse/keyboard output active).
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Tracking" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Can't Change" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute_rgb_legacy name="frgba" get="1" set="1" type="float" size="4">
			<digest>
				Legacy RGB alias
			</digest>
			<description>
				<m>frgba</m> is a legacy RGB alias for the <at>textcolor</at> RGBA attribute. See <link type="vignette" module="core" name="maxcolor">here</link> for more information.
			</description>
			<attributelist>
				<attribute name="alias" get="1" set="1" type="symbol" size="1" value="textcolor" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute_rgb_legacy>
		<attribute name="hbgcolor" get="1" set="1" type="float" size="4">
			<digest>
				Highlighted Background Color
			</digest>
			<description>
				Sets the RGBA values for the background of the <link name="flonum" type="refpage">number box</link> when it is highlighted or being updated.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0. 0. 0. 1." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Highlighted Background Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="htextcolor" get="1" set="1" type="float" size="4">
			<digest>
				Highlighted Text Color
			</digest>
			<description>
				Sets the RGBA values for the number values displayed by the <link name="flonum" type="refpage">number box</link> when it is highlighted or being updated.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="1. 1. 1. 1." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Highlighted Text Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="htricolor" get="1" set="1" type="float" size="4">
			<digest>
				Highlighted Triangle Color
			</digest>
			<description>
				Sets the highlight color for the triangle inside the <link name="number" type="refpage">number box</link> object that indicates that the contents are editable.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0.87 0.82 0.24 1." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Highlighted Triangle Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="maximum" get="1" set="1" type="atom" size="1">
			<digest>
				Maximum
			</digest>
			<description>
				Sets the maximum value that can be displayed or sent out by the <link name="flonum" type="refpage">number box</link>.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="atom" size="1" value="&lt;none&gt;" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Maximum" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="2" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="minimum" get="1" set="1" type="atom" size="1">
			<digest>
				Minimum
			</digest>
			<description>
				Sets the minimum value that can be displayed or sent out by the <link name="flonum" type="refpage">number box</link>.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="atom" size="1" value="&lt;none&gt;" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Minimum" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="mouseup" get="1" set="1" type="int" size="1">
			<digest>
				Send Value on Mouse Up
			</digest>
			<description>
				Toggles the ability to send a number only when the mouse button is released, rather than continuously. The default is 0 (continuous display).
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Tracking" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Send Value on Mouse Up" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="numdecimalplaces" get="1" set="1" type="int" size="1">
			<digest>
				Number of Decimal Places
			</digest>
			<description>
				Specifies the number of decimal places used when displaying a value.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Appearance" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Number of Decimal Places" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="outputonclick" get="1" set="1" type="int" size="1">
			<digest>
				Send Value on Mouse Click
			</digest>
			<description>
				Toggles outputting a value on mouse click.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Tracking" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Send Value on Mouse Click" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="parameter_enable" get="1" set="1" type="int" size="1">
			<digest>
				Parameter Mode Enable
			</digest>
			<description>
				Enables use of this object with <link type="vignette" module="core" name="live_parameters">Max for Live Parameters</link> and allows for <link type="vignette" module="core" name="parameter_enable">setting initial parameter values</link> in the Max environment.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Parameter" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Parameter Mode Enable" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute_rgb_legacy name="rgba2" get="1" set="1" type="float" size="4">
			<digest>
				Legacy RGB alias
			</digest>
			<description>
				<m>rgba2</m> is a legacy RGB alias for the <at>htextcolor</at> RGBA attribute. See <link type="vignette" module="core" name="maxcolor">here</link> for more information.
			</description>
			<attributelist>
				<attribute name="alias" get="1" set="1" type="symbol" size="1" value="htextcolor" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute_rgb_legacy>
		<attribute_rgb_legacy name="rgba3" get="1" set="1" type="float" size="4">
			<digest>
				Legacy RGB alias
			</digest>
			<description>
				<m>rgba3</m> is a legacy RGB alias for the <at>hbgcolor</at> RGBA attribute. See <link type="vignette" module="core" name="maxcolor">here</link> for more information.
			</description>
			<attributelist>
				<attribute name="alias" get="1" set="1" type="symbol" size="1" value="hbgcolor" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute_rgb_legacy>
		<attribute_rgb_legacy name="rgba4" get="1" set="1" type="float" size="4">
			<digest>
				Legacy RGB alias
			</digest>
			<description>
				<m>rgba4</m> is a legacy RGB alias for the <at>bordercolor</at> RGBA attribute. See <link type="vignette" module="core" name="maxcolor">here</link> for more information.
			</description>
			<attributelist>
				<attribute name="alias" get="1" set="1" type="symbol" size="1" value="bordercolor" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute_rgb_legacy>
		<attribute name="textcolor" get="1" set="1" type="float" size="4">
			<digest>
				Text Color
			</digest>
			<description>
				Sets the color for the <link name="flonum" type="refpage">number box</link> object's displayed/unclicked number values.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0. 0. 0. 1." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Text Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="triangle" get="1" set="1" type="int" size="1">
			<digest>
				Draw Triangle
			</digest>
			<description>
				Toggles the drawing of a triangular arrow pointing to the number in the number box. The default is 1 (draw the triangle).
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Appearance" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Draw Triangle" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="tricolor" get="1" set="1" type="float" size="4">
			<digest>
				Triangle Color
			</digest>
			<description>
				Sets the color for the triangle inside the <link name="number" type="refpage">number box</link> object that indicates that the contents are editable.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="defaultname" get="1" set="1" type="float" size="4" value="0.75 0.75 0.75 1." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Triangle Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="triscale" get="1" set="1" type="float" size="1">
			<digest>
				Triangle Scale Factor
			</digest>
			<description>
				Scales the size of the triangle drawn in the number box.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Appearance" />
				<attribute name="default" get="1" set="1" type="float" size="1" value="1." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Triangle Scale Factor" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--MENU ITEMS-->
	<menuitemlist>
		<menuitem name="Color">
			<digest>
				Color... menu item
			</digest>
			<description>
				Choosing the <b>Color...</b> menu item from the <b>Object</b> menu when the object is selected opens a <link type="vignette" module="core" name="color_palette">color picker</link>, permitting adjustment to the appearance of the <link type="refpage" name="flonum">number box</link>.
			</description>
		</menuitem>
	</menuitemlist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="flonum.png" caption="Displays numbers passing through.... Can be used to output numbers" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="float" />
		<seealso name="int" />
		<seealso name="basicchapter03" module="max" type="tutorial" />
	</seealsolist>
	<discussion>
		Note: The way floating-point numbers are stored on your computer means that not all numbers can be represented. This means that you will often see values such as 2.3 displayed as 2.29999. Clicking in the <m>Float Display Correction</m> checkbox in the <link name="interface_pane" module="core" type="vignette">Interface pane</link> of the Max Preferences Window will make the Max application round numbers and truncates them at what it guesses is the least significant digit.
	</discussion>
	<misc name="Output">
		<entry name="int">
			<description>
				The number displayed in the <link name="flonum" type="refpage">number box</link> is sent out the outlet. Numbers received in the inlet or typed on the computer keyboard can exceed the limits of the <link name="flonum" type="refpage">number box</link>, but the value that gets stored, displayed, and sent out will automatically be limited to the specified range.
			</description>
		</entry>
		<entry name="float">
			<description>
				The number displayed in the <link name="flonum" type="refpage">number box</link> is sent out the outlet. Numbers received in the inlet or typed on the computer keyboard can exceed the limits of the <link name="flonum" type="refpage">number box</link>, but the value that gets stored, displayed, and sent out will automatically be limited to the specified range.
			</description>
		</entry>
	</misc>
</c74object>
