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

※ NOTES AND WARNINGS:

See the reference for float for details about the precision and limitations of floating point numbers on Arduino.

See Also

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Please note: These are Amazon affiliate links. If you buy the components through these links, We will get a commission at no extra cost to you. We appreciate it.

※ OUR MESSAGES