forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcaret.lcdoc
More file actions
55 lines (36 loc) · 1.17 KB
/
caret.lcdoc
File metadata and controls
55 lines (36 loc) · 1.17 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
Name: ^
Type: operator
Syntax: <number> ^ <exponent>
Summary:
Raises a number to a power.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
7^3
Example:
myNumber^(1/2)
Example:
put 2^bitDepth into numberOfColors
Parameters:
number:
The number and exponent are numbers, or expressions that evaluate to
numbers.
exponent:
The result:
If the <exponent> is zero, the result of this <operator> is 1,
regardless of what the <number> is.
Description:
Use the <^> <operator> to raise a number to a power, or to find a root
of a number.
If the <exponent> is a fraction, with 1 as the numerator, the <^>
<operator> finds the specified root of the <number>. For example, if the
<exponent> is 1/2, the <operation> yields the square root of <number>;
if the <exponent> is 1/4, the <operation> yields the 4th root of the
<number>, and so on.
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: ln1 (function), exp (function), sqrt (function),
operator (glossary), operation (glossary), math operation (glossary)
Tags: math