forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexp2.lcdoc
More file actions
44 lines (27 loc) · 864 Bytes
/
exp2.lcdoc
File metadata and controls
44 lines (27 loc) · 864 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
Name: exp2
Type: function
Syntax: the exp2 of <number>
Syntax: exp2(<number>)
Summary:
<return|Returns> the <binary> exponential of a number.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
exp2(8) -- returns 256
Example:
exp2(the screenDepth) -- returns number of colors available
Parameters:
number:
A real number, or an expression that evaluates to a number.
Returns:
The <exp2> function <return|returns> a positive number.
Description:
Use the <exp2> function to obtain a power of 2.
The expression exp2(number) is equal to 2^number.
If a math operation on finite inputs produces a non-finite output, an
execution error is thrown. See <math operation|math operations> for more
information.
References: exp (function), binary (glossary), return (glossary),
math operation (glossary)
Tags: math