aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/floatcast.rst
blob: 6b857275960a855ac5258a2147edabdfabc4e9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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>`_