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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user