Asterisk Project : Asterisk 11 Function_MATH This page last changed on Sep 26, 2012 by wikibot. # MATH() ### Synopsis Performs Mathematical Functions. ### Description Performs mathematical functions based on two parameters and an operator. The returned value type is type Example: Set(i=${MATH(123%16,int)}) - sets var i=11 ### Syntax
    MATH(expression,type)
##### Arguments `expression` - Is of the form: number1 op number2 where the possible values for op are:+,-,/,*,%,<<,>>,^,AND,OR,XOR,<,>,<=,>=,== (and behave as their C equivalents) `type` - Wanted type of result:f, float - float(default)i, int - integerh, hex - hexc, char - char ### Import Version This documentation was imported from Asterisk Version SVN-branch-11-r373804

Document generated by Confluence on Nov 02, 2012 17:42