Reference for Wiring version 0027+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name

float()

Examples
float f = float(true);
Description Converts a primitive datatype to its floating point representation.
Syntax
float(value)
Parameters
value int, long, float, char, byte, or boolean
Returns float
Usage Application
Related float
int()
long()
char()
byte()
Updated on September 16, 2010 09:15:33pm PDT

Creative Commons License