Ticket #5203: precise_pi_and_e.patch
File precise_pi_and_e.patch, 605 bytes (added by , 14 years ago) |
---|
-
src/kits/shared/ExpressionParser.cpp
565 565 ExpressionParser::_ParseFunction(const Token& token) 566 566 { 567 567 if (strcasecmp("e", token.string.String()) == 0) 568 return MAPM(M _E);568 return MAPM(MM_E); 569 569 else if (strcasecmp("pi", token.string.String()) == 0) 570 return MAPM(M _PI);570 return MAPM(MM_PI); 571 571 572 572 // hard coded cases for different count of arguments 573 573 // supports functions with 3 arguments at most