str()DataConversionWeb & Application
boolean b = false;
byte y = -28;
char c = 'R';
float f = -32.6;
int i = 1024;
String sb = str(b);
String sy = str(y);
String sc = str(c);
String sf = str(f);
String si = str(i);
sb = sb + sy + sc + sf + si + sh;
println(sb); // Prints 'false-28R-32.61024'
Returns the string representation of primitive datatypes and arrays. For example the integer 3 will return the string "3", the float -12.6 will return the string "-12.6", and a boolean value true will return the string "true".
str(data)
boolean, byte, char, float, int, boolean[], byte[], char[], float[], int[]String or String[]1.0FunctionCore