The Arduino Reference text is licensed under a Creative Commons Attribution-Share Alike 3.0 License.
Find anything that can be improved? Suggest corrections and new documentation via GitHub.
Doubts on how to use Github? Learn everything you need to know in this tutorial.
Last Revision: Searching...
Last Build: 2024/11/08
Converts a value to the float data type.
float
float(x) (float)x (C-style type conversion)
float(x)
(float)x
x: a value. Allowed data types: any type.
x
Data type: float.
See the reference for float for details about the precision and limitations of floating point numbers on Arduino.
LANGUAGE float