[][src]Static p5_sys::global::str

pub static str: StrInternalType

Converts a boolean, string or number to its string representation. When an array of values is passed in, then an array of strings of the same length is returned.

Examples

print(str('10')); // "10"
print(str(10.31)); // "10.31"
print(str(-10)); // "-10"
print(str(true)); // "true"
print(str(false)); // "false"
print(str([true, '10.3', 9.8])); // [ "true", "10.3", "9.8" ]

Parameters

n value to parse