summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt31
1 files changed, 10 insertions, 21 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 13b154560..0eb383c0a 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -7646,31 +7646,14 @@ Example:
---------------------------------------
-
-*floor(<number>)
-
-Returns the number rounded down.
-
-Example:
- .@i = floor(2.5); // .@i will be 2
-
----------------------------------------
-
-*ceil(<number>)
-
-Returns the number rounded up.
-
-Example:
- .@i = ceil(2.5); // .@i will be 3
-
----------------------------------------
-
-*log(<number>)
+*log10(<number>)
Returns log base 10 of the number.
+Note: The value is truncated to integer.
+
Example:
- .@i = log(100); // .@i will be 2
+ .@i = log10(100); // .@i will be 2
---------------------------------------
@@ -7678,6 +7661,8 @@ Example:
Returns square-root of number.
+Note: The value is truncated to integer.
+
Example:
.@i = sqrt(25); // .@i will be 5
@@ -7687,6 +7672,10 @@ Example:
Returns distance between 2 points.
+Note: When Hercules is configured to use circular areas, the Euclidean distance
+is returned, otherwise the Chebyshev distance. The value is truncated to
+integer.
+
Example:
.@i = distance(100,200,101,202);