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

int()

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

Creative Commons License