Extension:ParserFunctions/Extended

This extension consists of ParserFunctions after applying patch by Carl Fürstenberg. The next section gives the resulting Expr.php after applying the patch to ). The following section gives the resulting Expr.php after applying the patch to, and adapting it to the changed error handling.

With this extension scientific notation is not only produced as output, but also allowed as input. Also the power sign ^ works.

Further it includes the PHP functions abs, floor, ceil, fmod, and sqrt, and a function idiv which applies conversion to an integer by the PHP function "(int)" (rounding towards zero) to the quotient of the arguments.

Finally it contains the functions #min and #max, which are the PHP functions min and max, for the case that each argument is numeric.

Examples:


 * gives 1.024E+033
 * gives -3
 * gives -1
 * gives -2
 * gives -1
 * gives 3
 * gives 1.7320508075689
 * gives 4000
 * gives 30000