mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
64 lines
941 B
XML
64 lines
941 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>char()</name>
|
|
|
|
<category>Data</category>
|
|
|
|
<subcategory>Conversion</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
int i = 65;
|
|
char c = char(i);
|
|
println(i + " : " + c); // Prints "65 : A"
|
|
|
|
float f = 72.4;
|
|
c = char(f);
|
|
println(f + " : " + c); // Prints "72.4 : H"
|
|
|
|
boolean b = true;
|
|
c = char(b);
|
|
println(b + " : " + c); // Prints "true : t"
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Converts a primitive datatype, string, or array to a numeric character representation.
|
|
</description>
|
|
|
|
<syntax>
|
|
char(<c>val</c>)
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>val</label>
|
|
<description>int, float, byte, boolean, String, int[], float[], byte[], boolean[], String[]</description>
|
|
</parameter>
|
|
|
|
<returns>char</returns>
|
|
|
|
<related>
|
|
char
|
|
int()
|
|
float()
|
|
byte()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>IDE</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|