aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/floatcast.rst
diff options
context:
space:
mode:
Diffstat (limited to 'source/arduino/floatcast.rst')
-rw-r--r--source/arduino/floatcast.rst51
1 files changed, 51 insertions, 0 deletions
diff --git a/source/arduino/floatcast.rst b/source/arduino/floatcast.rst
new file mode 100644
index 0000000..6b85727
--- /dev/null
+++ b/source/arduino/floatcast.rst
@@ -0,0 +1,51 @@
+.. _arduino-floatcast:
+
+float()
+=======
+
+Description
+-----------
+
+Converts a value to the
+`float <http://arduino.cc/en/Reference/Float>`_ data type.
+
+
+
+Syntax
+------
+
+float(x)
+
+
+
+Parameters
+----------
+
+x: a value of any type
+
+
+
+Returns
+-------
+
+float
+
+
+
+Notes
+-----
+
+See the reference for
+`float <http://arduino.cc/en/Reference/Float>`_ for details about
+the precision and limitations of floating point numbers on
+Arduino.
+
+
+
+See also
+--------
+
+
+- `float <http://arduino.cc/en/Reference/Float>`_
+
+