forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbyteconvert.xml
More file actions
executable file
·55 lines (34 loc) · 996 Bytes
/
Copy pathbyteconvert.xml
File metadata and controls
executable file
·55 lines (34 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>byte()</name>
<category>Data</category>
<subcategory>Conversion</subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
char c = 'E';
byte b = byte(c);
println(c + " : " + b); // Prints "E : 69"
int i = 130;
b = byte(i);
println(i + " : " + b); // Prints "130 : -126"
]]></code>
</example>
<description><![CDATA[Converts a primitive datatype or array to its byte representation. A byte can only be a whole number between -128 and 127, therefore when a number outside this range is converted, its value wraps to the corresponding byte representation.]]></description>
<syntax><![CDATA[
byte(<kbd>val</kbd>)
]]></syntax>
<parameter>
<label>val</label>
<description><![CDATA[int, char, int[], char[]]]></description>
</parameter>
<returns>byte</returns>
<related>
byte
int()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>IDE</partof>
</root>