summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorStreusel <streusel@gravity.co.kr>2015-05-15 21:01:18 -0700
committerStreusel <streusel@gravity.co.kr>2015-05-15 21:01:18 -0700
commitb5915307d91b8bd31c554c60b57791383f88edda (patch)
tree771df8585f05a2153c5a57b19909672f847b23a1 /doc/script_commands.txt
parent6e3f2f6a507d88603def67d8aefaba3a62297573 (diff)
downloadhercules-b5915307d91b8bd31c554c60b57791383f88edda.tar.gz
hercules-b5915307d91b8bd31c554c60b57791383f88edda.tar.bz2
hercules-b5915307d91b8bd31c554c60b57791383f88edda.tar.xz
hercules-b5915307d91b8bd31c554c60b57791383f88edda.zip
Added floor(), ceil() and log() functions for usage in scripts.
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 831e0a744..13b154560 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -7646,6 +7646,34 @@ 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>)
+
+Returns log base 10 of the number.
+
+Example:
+ .@i = log(100); // .@i will be 2
+
+---------------------------------------
+
*sqrt(<number>)
Returns square-root of number.