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
.
See the reference for float
for details about the precision and limitations of floating point numbers on Arduino.
Language (unsigned int)
Language (unsigned long)
Language byte()
Language char()
Language int()
Language long()
Language word()
LANGUAGE float