diff --git a/functions/math.xml b/functions/math.xml index 3c49b72a06..3a3f6f0701 100644 --- a/functions/math.xml +++ b/functions/math.xml @@ -1,5 +1,5 @@ - + Mathematical Functions Math @@ -145,6 +145,16 @@ otherwise it is integer (as float usually has a bigger value range than integer). + + <function>abs</function> example + + + + @@ -632,7 +642,7 @@ $ten = ceil(9.999); // $ten = 10.0; Returns the next lowest integer value by rounding down - value if neccessary. + value if necessary. The return value of floor is still of type float because the value range of float is usually bigger than that of int.