aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/abs.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-10-25 21:15:28 -0400
committerMarti Bolivar <mbolivar@mit.edu>2010-11-17 12:44:28 -0500
commit2d429e75ce69e77f8c95490ac03881ec9aa0354a (patch)
treea3b810a6c75625b07a4b976e5d1e319c60e19a6b /source/arduino/abs.rst
parent30ac55d80c18e93f9c39a6dd850c10f9e7fd92ac (diff)
downloadlibrambutan-2d429e75ce69e77f8c95490ac03881ec9aa0354a.tar.gz
librambutan-2d429e75ce69e77f8c95490ac03881ec9aa0354a.zip
arduino language reference nearing completion, properly CC-BY-SA 3.0 attributed
Diffstat (limited to 'source/arduino/abs.rst')
-rw-r--r--source/arduino/abs.rst18
1 files changed, 12 insertions, 6 deletions
diff --git a/source/arduino/abs.rst b/source/arduino/abs.rst
index 5d699ae..ed7296a 100644
--- a/source/arduino/abs.rst
+++ b/source/arduino/abs.rst
@@ -11,7 +11,7 @@ Description
Parameters
----------
-**x**: the number
+**x**: the number.
Returns
-------
@@ -24,10 +24,16 @@ Warning
-------
Because of the way ``abs()`` is implemented, avoid using other
-functions or causing side effects inside the brackets, as it may lead
-to incorrect results ::
+functions or causing side effects inside the parentheses, as it may
+lead to incorrect results::
abs(a++); // avoid this - yields incorrect results
-
- a++; // use this instead -
- abs(a); // keep other math outside the function
+
+ abs(a); // use this instead -
+ a++; // keep other operations outside abs()
+
+
+Arduino Compatibility
+---------------------
+
+Maple's implementation of ``abs()`` is compatible with Arduino.