float()
Description
Converts a value to the float data type.
Syntax
float(x)
(float)x (C-style type conversion)
Parameter Values
- x: a value. Allowed data types: any type.
Return Values
- Data type: float.
※ NOTES AND WARNINGS:
See the reference for float for details about the precision and limitations of floating point numbers on Arduino.
See Also
- Language : byte()
- Language : char()
- Language : int()
- Language : long()
- Language : (unsigned int)
- Language : (unsigned long)
- Language : word()
- Language : float
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.
Additionally, some links direct to products from our own brand, DIYables.