Reference for Wiring version 0024+. 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 November 01, 2009 12:36:20pm PST

Creative Commons License