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

byte()

Examples
byte b = byte(260); 

// equivalent to the cast operator
byte b = (byte) 260;
Description Converts a primitive datatype to its byte representation. This equivalent to the cast operator (byte).
Syntax
byte(val)
(byteval
Parameters
val int, long, float, char, byte or boolean
Returns byte
Usage Application
Related byte
int()
long()
float()
char()
Updated on July 07, 2011 11:07:57pm PDT

Creative Commons License