Function | Syntax | Result |
Absolute value | abs({num}) | {if(is_numeric(num),abs(num),'')} |
Arc cosine | acos({num}) | {if(is_numeric(num),acos(num),'')} |
Arc sine | asin({num}) | {if(is_numeric(num),asin(num),'')} |
Arc tangent of two variables | atan2({num},{num2}) | {if(is_numeric(num) && is_numeric(num2),atan2(num,num2),'')} |
Arc tangent | atan({num}) | {if(is_numeric(num),atan(num),'')} |
Round fractions up | ceil({num}) | {if(is_numeric(num),ceil(num),'')} |
Cosine | cos({num}) | {if(is_numeric(num),cos(num),'')} |
Calculates the exponent of e | exp({num}) | {if(is_numeric(num),exp(num),'')} |
Round fractions down | floor({num}) | {if(is_numeric(num),floor(num),'')} |
Finds whether a value is not a number | is_nan({num}) | {if(is_numeric(num),is_nan(num),'')} |
Natural logarithm | log({num}) | {if(is_numeric(num),log(num),'')} |
Get value of pi | pi() | {pi()} |
Exponential expression | pow({num},{num2}) | {if(is_numeric(num) && is_numeric(num2),pow(num,num2),'')} |
Generate a random integer | rand() | {rand()} |
Rounds a float | round({num}) | {if(is_numeric(num),round(num),'')} |
Sine | sin({num}) | {if(is_numeric(num),sin(num),'')} |
Square root | sqrt({num}) | {if(is_numeric(num),sqrt(num),'')} |
Calculate the sum of values in an array | sum({num}) | {if(is_numeric(num),sum(num),'')} |
Tangent | tan({num}) | {if(is_numeric(num),tan(num),'')} |
Find lowest value | min({num2},{num},{num}+{num2},{num}-{num2},{num}*{num2},{num}/2) | {if(is_numeric(num),min(num2,num,num+num2,num-num2,num*num2,num/2),'')} |
Find highest value | max({num2},{num},{num}+{num2},{num}-{num2},{num}*{num2},{num}/2) | {if(is_numeric(num),max(num2,num,num+num2,num-num2,num*num2,num/2),'')} |
Sum | sum({num2},{num},{num}+{num2},{num}-{num2},{num}*{num2},{num}/2) | {if(is_numeric(num),sum(num2,num,num+num2,num-num2,num*num2,num/2),'')} |
Join array elements with a string | implode('~',{num2},{num},{num}+{num2},{num}-{num2},{num}*{num2},{num}/2) | {implode('~',num2,num,num+num2,num-num2,num*num2,num/2)} |
Get the integer value of a variable | intval({num}) | {if(is_numeric(num),intval(num),'')} |
Finds whether the type of a variable is float | is_float({num}) | {if(is_numeric(num),is_float(num),'')} |
Finds whether the type of a variable is integer | is_int({num}) | {if(is_numeric(num),is_int(num),'')} |
Finds whether the type of a variable is NULL | is_null({num}) | {is_null(num)} |
Finds whether a variable is a number or a numeric string | is_numeric({num}) | {is_numeric(num)} |
Finds whether the type of a variable is string | is_string({num}) | {is_string(num)} |
Determine whether a variable is considered to be empty | is_empty({num}) | {is_empty(num)} |
]]>