From b5915307d91b8bd31c554c60b57791383f88edda Mon Sep 17 00:00:00 2001 From: Streusel Date: Fri, 15 May 2015 21:01:18 -0700 Subject: Added floor(), ceil() and log() functions for usage in scripts. --- doc/script_commands.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'doc') 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() + +Returns the number rounded down. + +Example: + .@i = floor(2.5); // .@i will be 2 + +--------------------------------------- + +*ceil() + +Returns the number rounded up. + +Example: + .@i = ceil(2.5); // .@i will be 3 + +--------------------------------------- + +*log() + +Returns log base 10 of the number. + +Example: + .@i = log(100); // .@i will be 2 + +--------------------------------------- + *sqrt() Returns square-root of number. -- cgit v1.2.3-60-g2f50