Versions Compared
Version | Old Version 10 | New Version 11 |
---|---|---|
Changes made by | Former user |
Former user |
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Table of Contents |
---|
Built-in Functions on the Math Namespace
pow
Raises the first argument to the power of the second argument.
Code Block | ||
---|---|---|
| ||
int i = Math:pow(2, 8); |
sqrt
Calculates the square root of the argument.
Code Block | ||
---|---|---|
| ||
decimal d = Math:sqrt(3); |
random
Generates a random decimal.
Code Block | ||
---|---|---|
| ||
decimal r = Math:random(); |
Excerpt | ||
---|---|---|
| ||
pow | sqrt | random |