diff options
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r-- | doc/script_commands.txt | 28 |
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. |