Size: 5673
Comment:
|
Size: 5160
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 34: | Line 34: |
Computes and returns an absolute value for the number specified by the parameter val. '''Example:''' . '''Result:''' . = acos = '''Usage:''' Computes and returns the arc cosine of the number specified in the parameter val, in radians. '''Example:''' . '''Result:''' . = asin = '''Usage:''' Computes and returns the arc sine for the number specified in the parameter val, in radians. '''Example:''' . '''Result:''' . = atan = '''Usage:''' Computes and returns the value, in radians, of the angle whose tangent is specified in the parameter val. '''Example:''' . '''Result:''' . = atan2 = '''Usage:''' |
|
Line 42: | Line 86: |
= acos = '''Usage:''' Returns a string comprising the characters represented by the Unicode character codes in the parameters. '''Example:''' . '''Result:''' . = asin = '''Usage:''' Returns a string comprising the characters represented by the Unicode character codes in the parameters. '''Example:''' . '''Result:''' . = atan = '''Usage:''' Returns a string comprising the characters represented by the Unicode character codes in the parameters. '''Example:''' . '''Result:''' . = atan2 = '''Usage:''' Returns a string comprising the characters represented by the Unicode character codes in the parameters. '''Example:''' . '''Result:''' . |
|
Line 89: | Line 89: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Returns the ceiling of the specified number or expression. |
Line 100: | Line 100: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Computes and returns the cosine of the specified angle in radians. |
Line 111: | Line 111: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Returns the value of the base of the natural logarithm (e), to the power of the exponent specified in the parameter x. |
Line 122: | Line 122: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Returns the floor of the number or expression specified in the parameter val. |
Line 133: | Line 133: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Returns the natural logarithm of the parameter val. |
Line 144: | Line 144: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Evaluates val1 and val2 (or more values) and returns the largest value. |
Line 155: | Line 155: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Evaluates val1 and val2 (or more values) and returns the smallest value. |
Line 166: | Line 166: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Computes and returns base to the power of pow. |
Line 177: | Line 177: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Returns a pseudo-random number n, where 0 <= n < 1. |
Line 188: | Line 188: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Rounds the value of the parameter val up or down to the nearest integer and returns the value. |
Line 199: | Line 199: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Computes and returns the sine of the specified angle in radians. |
Line 210: | Line 210: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Computes and returns the square root of the specified number. |
Line 221: | Line 221: |
Returns a string comprising the characters represented by the Unicode character codes in the parameters. | Computes and returns the tangent of the specified angle. |
Line 230: | Line 230: |
ScriptBasicSyntax | ScriptSyntax |
The following functions can be used to perform arithmetic on objects and variables.
These should be written in the following formats:
variable.method(arguments), example - ...
object.method(arguments), example - ...
Click each method name in the table below for more details of it, with examples.
Methods
Method |
Type |
Description |
|
|
int |
Computes and returns an absolute value for the number specified by the parameter val. |
|||
int |
Computes and returns the arc cosine of the number specified in the parameter val, in radians. |
|||
int |
Computes and returns the arc sine for the number specified in the parameter val, in radians. |
|||
int |
Computes and returns the value, in radians, of the angle whose tangent is specified in the parameter val. |
|||
int |
Computes and returns the angle of the point y/x in radians, when measured counterclockwise from a circle's x axis (where 0,0 represents the center of the circle). |
|||
int |
Returns the ceiling of the specified number or expression. |
|||
int |
Computes and returns the cosine of the specified angle in radians. |
|||
int |
Returns the value of the base of the natural logarithm (e), to the power of the exponent specified in the parameter x. |
|||
int |
Returns the floor of the number or expression specified in the parameter val. |
|||
int |
Returns the natural logarithm of the parameter val. |
|||
int |
Evaluates val1 and val2 (or more values) and returns the largest value. |
|||
int |
Evaluates val1 and val2 (or more values) and returns the smallest value. |
|||
int |
Computes and returns base to the power of pow. |
|||
int |
Returns a pseudo-random number n, where 0 <= n < 1. |
|||
int |
Rounds the value of the parameter val up or down to the nearest integer and returns the value. |
|||
int |
Computes and returns the sine of the specified angle in radians. |
|||
int |
Computes and returns the square root of the specified number. |
|||
int |
Computes and returns the tangent of the specified angle. |
abs
Usage:
Computes and returns an absolute value for the number specified by the parameter val.
Example:
Result:
acos
Usage:
Computes and returns the arc cosine of the number specified in the parameter val, in radians.
Example:
Result:
asin
Usage:
Computes and returns the arc sine for the number specified in the parameter val, in radians.
Example:
Result:
atan
Usage:
Computes and returns the value, in radians, of the angle whose tangent is specified in the parameter val.
Example:
Result:
atan2
Usage:
Returns a string comprising the characters represented by the Unicode character codes in the parameters.
Example:
Result:
ceil
Usage:
Returns the ceiling of the specified number or expression.
Example:
Result:
cos
Usage:
Computes and returns the cosine of the specified angle in radians.
Example:
Result:
exp
Usage:
Returns the value of the base of the natural logarithm (e), to the power of the exponent specified in the parameter x.
Example:
Result:
floor
Usage:
Returns the floor of the number or expression specified in the parameter val.
Example:
Result:
log
Usage:
Returns the natural logarithm of the parameter val.
Example:
Result:
max
Usage:
Evaluates val1 and val2 (or more values) and returns the largest value.
Example:
Result:
min
Usage:
Evaluates val1 and val2 (or more values) and returns the smallest value.
Example:
Result:
pow
Usage:
Computes and returns base to the power of pow.
Example:
Result:
random
Usage:
Returns a pseudo-random number n, where 0 <= n < 1.
Example:
Result:
round
Usage:
Rounds the value of the parameter val up or down to the nearest integer and returns the value.
Example:
Result:
sin
Usage:
Computes and returns the sine of the specified angle in radians.
Example:
Result:
sqrt
Usage:
Computes and returns the square root of the specified number.
Example:
Result:
tan
Usage:
Computes and returns the tangent of the specified angle.
Example:
Result: