Framework (A-Z)

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

Name

long()

Examples
long i = long(245.456);  // sets i to 245

// equivalent to the cast operator
long i = (long) 245.456; // sets i to 245
Description Converts a primitive datatype to long integer representation. This equivalent to the cast operator (long).
Syntax
long(value)
(longvalue
Parameters
value int, long, float, char, byte or boolean
Returns long
Usage Application
Related long
int()
float()
char()
byte()
Updated on July 07, 2011 11:08:35pm PDT

Creative Commons License