Asterisk Project : Asterisk 10 Function_MATH This page last changed on Oct 14, 2011 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,<,%gt;,>=,<=,== (and behave as their C equivalents) `type` - Wanted type of result: f, float - float(default) i, int - integer h, hex - hex c, char - char ### See Also ### Import Version This documentation was imported from Asterisk version SVN-branch-10-r340810.

Document generated by Confluence on Oct 14, 2011 13:25