Description
Converts a value to the float data type.
Syntax
float(x)
(float)x
(C-style type conversion)
Parameters
x
: a value. Allowed data types: any type.
Returns
Data type: float
.
Converts a value to the float data type.
float(x)
(float)x
(C-style type conversion)
x
: a value. Allowed data types: any type.
Data type: float
.
See the reference for float for details about the precision and limitations of floating point numbers on Arduino.
LANGUAGE float