Datatype Conversion.
It is sometimes beneficial to convert a value from one type of data to another. Each of the conversion functions converts its parameter to an equivalent representation within its datatype. The conversion functions include int(), float(), char(), byte(), and others.
size(640, 360);
background(0);
noStroke();
textFont(createFont("Georgia",24));
char c;
float f;
int i;
byte b;
c = 'A';
f = float(c);
i = int(f * 1.4);
b = byte(c / 2);
text("The value of variable c is " + c, 50, 100);
text("The value of variable f is " + f, 50, 150);
text("The value of variable i is " + i, 50, 200);
text("The value of variable b is " + b, 50, 250);
Processing was initiated by Ben Fry and Casey Reas. It is devel