aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/floatcast.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/arduino/floatcast.rst')
-rw-r--r--docs/source/arduino/floatcast.rst51
1 files changed, 51 insertions, 0 deletions
diff --git a/docs/source/arduino/floatcast.rst b/docs/source/arduino/floatcast.rst
new file mode 100644
index 0000000..6b85727
--- /dev/null
+++ b/docs/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>`_
+
+