Patch by John Scipione: Allow pi and e constants to have full MAPM precision.

Thanks a bunch!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36462 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-04-25 10:02:37 +00:00
parent 08c7fa9db4
commit 7fd4194e29
+2 -2
View File
@@ -565,9 +565,9 @@ MAPM
ExpressionParser::_ParseFunction(const Token& token)
{
if (strcasecmp("e", token.string.String()) == 0)
return MAPM(M_E);
return MAPM(MM_E);
else if (strcasecmp("pi", token.string.String()) == 0)
return MAPM(M_PI);
return MAPM(MM_PI);
// hard coded cases for different count of arguments
// supports functions with 3 arguments at most