summaryrefslogtreecommitdiff
path: root/opcodes/floor.xml
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/floor.xml')
-rw-r--r--opcodes/floor.xml31
1 files changed, 30 insertions, 1 deletions
diff --git a/opcodes/floor.xml b/opcodes/floor.xml
index 7e160fd..ca1dd34 100644
--- a/opcodes/floor.xml
+++ b/opcodes/floor.xml
@@ -34,7 +34,36 @@
further expression.
</para>
</refsect1>
-
+
+ <refsect1>
+ <title>Examples</title>
+ <para>
+ Here is an example of the floor opcode. It uses the file <ulink url="examples/floor.csd"><citetitle>floor.csd</citetitle></ulink>.
+ <example>
+ <title>Example of the floor opcode.</title>
+ <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
+ <xi:include href="examples-xml/floor.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1>
+ <para>
+ The output should include lines like these:
+ <screen>
+instr 1: inumber = 9.000 idiv = 1.000 ifl = 9.000
+instr 1: inumber = 9.000 idiv = 2.000 ifl = 4.000
+instr 1: inumber = 9.000 idiv = 3.000 ifl = 3.000
+instr 1: inumber = 9.000 idiv = 4.000 ifl = 2.000
+instr 1: inumber = 9.000 idiv = 5.000 ifl = 1.000
+instr 1: inumber = 9.000 idiv = 6.000 ifl = 1.000
+instr 1: inumber = 9.000 idiv = 7.000 ifl = 1.000
+instr 1: inumber = 9.000 idiv = 8.000 ifl = 1.000
+instr 1: inumber = 9.000 idiv = 9.000 ifl = 1.000
+instr 1: inumber = 9.000 idiv = 10.000 ifl = 0.000
+ </screen>
+ </para>
+ </refsect1>
<refsect1>
<title>See Also</title>