| 1 | |
| 2 | <refentry id="fmod"> |
| 3 | <indexterm id="IndexFmod"><primary>fmod</primary></indexterm> |
| 4 | <refentryinfo><title>Mathematical Operations:Arrays</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>fmod</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>fmod</refname> |
| 11 | <refpurpose> |
| 12 | Compute the floating point remainder operation. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Computes the remainder of the division of its first argument by |
| 20 | the second. |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis>ires[] <command>fmod</command> iarg1[], iarg2[] </synopsis> |
| 27 | <synopsis>kres[] <command>fmod</command> karg1[], karg2[]</synopsis> |
| 28 | <synopsis>ires[] <command>fmod</command> iarg1[], iarg2 </synopsis> |
| 29 | <synopsis>kres[] <command>fmod</command> karg[], karg2 </synopsis> |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Initialization</title> |
| 34 | <para> |
| 35 | <emphasis>iarg[]1/2, iarg2</emphasis> -- the operands. |
| 36 | </para> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Performance</title> |
| 41 | <para> |
| 42 | <emphasis>karg[]1/2, karg2</emphasis> -- the operands |
| 43 | </para> |
| 44 | </refsect1> |
| 45 | |
| 46 | <refsect1> |
| 47 | <title>Examples</title> |
| 48 | <para> |
| 49 | Here is an example of the fmod opcode. It uses the file <ulink url="examples/fmod.csd"><citetitle>fmod.csd</citetitle></ulink>. |
| 50 | <example> |
| 51 | <title>Example of the fmod opcode.</title> |
| 52 | <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> |
| 53 | <xi:include href="examples-xml/fmod.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 54 | </example> |
| 55 | </para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>See Also</title> |
| 60 | <para> |
| 61 | <link linkend="arrayOpcodes"><citetitle></citetitle>array opcodes</link> |
| 62 | </para> |
| 63 | </refsect1> |
| 64 | |
| 65 | <refsect1> |
| 66 | <title>Credits</title> |
| 67 | <para> |
| 68 | <simplelist> |
| 69 | <member>Author: Victor Lazzarini</member> |
| 70 | <member>2017</member> |
| 71 | </simplelist> |
| 72 | </para> |
| 73 | </refsect1> |
| 74 | </refentry> |