aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/modulo.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-11-29 01:49:26 -0500
committerMarti Bolivar <mbolivar@mit.edu>2010-11-29 01:49:26 -0500
commitee35f641687d0d3159c15eea5ad80d71efff4f82 (patch)
treed58e470a42623a1fba3eccbab324a26316d60398 /source/lang/modulo.rst
parentd9cbd78e29d42e70bb46641dd43ee0772c8c975f (diff)
downloadlibrambutan-ee35f641687d0d3159c15eea5ad80d71efff4f82.tar.gz
librambutan-ee35f641687d0d3159c15eea5ad80d71efff4f82.zip
Finished converting the Arduino docs
Diffstat (limited to 'source/lang/modulo.rst')
-rw-r--r--source/lang/modulo.rst13
1 files changed, 3 insertions, 10 deletions
diff --git a/source/lang/modulo.rst b/source/lang/modulo.rst
index 9e0dabd..289fba0 100644
--- a/source/lang/modulo.rst
+++ b/source/lang/modulo.rst
@@ -2,11 +2,8 @@
.. _lang-modulo:
-% (modulo)
-==========
-
-Description
------------
+Modulo Operator (``%``)
+=======================
Calculates the `remainder <http://en.wikipedia.org/wiki/Remainder>`_
when one integer is divided by another. It is useful for keeping a
@@ -17,9 +14,7 @@ Syntax
::
- result = dividend % divisor
-
-
+ dividend % divisor
Parameters
----------
@@ -67,11 +62,9 @@ The modulo operator does not work on floats. For that, you can use
the C standard library function `fmod()
<http://sourceware.org/newlib/libm.html#fmod>`_.
-
See Also
--------
- :ref:`Arithmetic <lang-arithmetic>`
-
.. include:: cc-attribution.txt