<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Arithmetic and Logic Operations</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <link rel="stylesheet" type="text/css" href="syntax-highlighting.css" /> <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="MathTop.html" title="Mathematical Operations" /> <link rel="prev" href="MathTop.html" title="Mathematical Operations" /> <link rel="next" href="SigmodCompaccum.html" title="Comparators and Accumulators" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">Arithmetic and Logic Operations</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="MathTop.html">Prev</a> </td> <th width="60%" align="center">Mathematical Operations</th> <td width="20%" align="right"> <a accesskey="n" href="SigmodCompaccum.html">Next</a></td> </tr> </table> <hr /> </div> <div class="section"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="MathArtLogic"></a>Arithmetic and Logic Operations</h2> </div> </div> </div> <p> Opcodes that perform arithmetic and logic operations are <a class="link" href="subtracts.html" title="-"><em class="citetitle">-</em></a>, <a class="link" href="adds.html" title="+"><em class="citetitle">+</em></a>, <a class="link" href="opand.html" title="&&"><em class="citetitle">&&</em></a>, <a class="link" href="opor.html" title="||"><em class="citetitle">||</em></a>, <a class="link" href="multiplies.html" title="*"><em class="citetitle">*</em></a>, <a class="link" href="divides.html" title="/"><em class="citetitle">/</em></a>, <a class="link" href="raises.html" title="ˆ"><em class="citetitle">ˆ</em></a>, and <a class="link" href="modulus.html" title="%"><em class="citetitle">%</em></a>. </p> <p> See the <a class="link" href="ControlConditional.html" title="Conditional Values"><em class="citetitle">Conditional Values</em></a> section and the <a class="link" href="if.html" title="if"><em class="citetitle">if</em></a> family of opcodes for usage of logical operators. </p> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="MathTop.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="MathTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="SigmodCompaccum.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">Mathematical Operations </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> Comparators and Accumulators</td> </tr> </table> </div> </body> </html>