Index
 
  Reference for Wiring 1.0 (ALPHA) 0021+. 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()