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
35 lines (20 loc) · 678 Bytes
/
exp2.lcdoc
File metadata and controls
35 lines (20 loc) · 678 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
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,web,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.
References: exp (function), binary (glossary), return (glossary)
Tags: math