Commit Graph

7 Commits

Author SHA1 Message Date
Michael Wirth
742048f24e Fixed typos and swapped Brackets for parentheses, Corrections due to PR 2017-10-16 20:17:53 +02:00
Michael Wirth
36111aa001 since Yamp is not maintained anymore, i switched it for Mages
https://github.com/FlorianRappl/Mages
fixes also #1022
2017-10-15 20:21:23 +02:00
martian-f
0862326a79 Convert calculator numbers from/to user locale.
Tries to convert numbers in query string to invariant culture format before passing to YAMP, and the other way around when presenting result from
YAMP. Nothing fancy, just a regular expression scanning for substrings consisting of number, decimal separator and group separator, trying a
parse and convert on them. Translation is skipped if no conversion between user locale and invariant culture number format is necessary.

Closes #436.
2017-04-10 23:43:23 +02:00
Jon Daniels
45b40d903c fix typo preventing last PR from taking effect 2016-08-04 17:52:11 -07:00
Jon Daniels
adac0f3e51 added sqrt as calculator keyword too 2016-08-04 16:43:32 -07:00
Jon Daniels
781845905c added various keywords to calculator
Added functions I commonly use on e.g. google calculator but were missed by parser.

Specifically I added:
e (constant like pi)
tan, arcsin, and arctan
log and ln
2016-08-04 13:17:00 -07:00
bao-qian
e7879384b1 fix #749 2016-06-16 02:06:12 +01:00