diff --git a/apps/app_math.c b/apps/app_math.c index 7ea7c22f84..8637d5265a 100755 --- a/apps/app_math.c +++ b/apps/app_math.c @@ -178,7 +178,7 @@ static int math_exec(struct ast_channel *chan, void *data) ftmp = (fnum1 * fnum2); break; case SUBTRACTFUNCTION : - ftmp = (fnum2 - fnum1); + ftmp = (fnum1 - fnum2); break; case MODULUSFUNCTION : { int inum1 = fnum1;