forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbyteToNum.xml
More file actions
72 lines (57 loc) · 1.9 KB
/
Copy pathbyteToNum.xml
File metadata and controls
72 lines (57 loc) · 1.9 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<doc>
<legacy_id></legacy_id>
<name>byteToNum</name>
<type>function</type>
<syntax>
<example>the byteToNum of <i>byte</i></example>
<example>byteToNum(<i>byte</i>)</example>
</syntax>
<synonyms>
</synonyms>
<summary>Returns the numeric value of a byte.</summary>
<examples>
<example>byteToNum(byte 1 of tString)</example>
<example>if byteToNum(nextByte) = 0 then next repeat</example>
<example><p>numToByte(byteToNum("Z")) <i><a name="code tag=">-- returns Z</a></i></p></example>
</examples>
<history>
<introduced version="4.0">Added.</introduced>
<deprecated version=""></deprecated>
<removed version=""></removed>
<changed version=""></changed>
</history>
<objects>
</objects>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<classification>
<category>Text and Data Processing</category>
</classification>
<references>
<function tag="charToNum">charToNum Function</function>
<function tag="numToChar">numToChar Function</function>
<function tag="numToByte">numToByte Function</function>
<function tag="md5Digest">md5Digest Function</function>
</references>
<description>
<overview>Converts a single byte to a numeric value in the range 0-255</overview>
<parameters>
<parameter>The <i>byte</i> is any <a name="glossary tag=expression">expression</a> that evaluates to a byte. If you specify a <a name="keyword tag=string">string</a> containing more than one byte, all bytes but the first are ignored.</parameter>
</parameters>
<value>The <b>byteToNum</b> <control_st tag="function">function</control_st> returns an <keyword tag="integer">integer</keyword> between zero and 255.</value>
<comments>The <b>byteToNum</b> function is the inverse of the <function tag="numToByte">numToByte</function> function.</comments>
</description>
</doc>