galculator / galculator

GTK 2 / GTK 3 based scientific calculator

Home Page:http://galculator.mnim.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modulo cannot be used in Formula notation mode

amix73 opened this issue · comments

System:
Linux 4.14.71-1-MANJARO
XFCE

Short:
Having put Galculator 2.1.4 into Formula notation mode it is impossible to use MOD operation without workaround.

Detailed:
Entering 'mod' leads to 'mcos(' since the key 'o' triggers the insertion of 'cos(' into the editor line.
Hitting the button ONLY inserts 'm' which is syntactically wrong :
pressing_mod_in_formula_notation_mode_screenshot_2018-09-30_10-52-51
Which of course leads to a syntax error when evaluated:
mod_syntax_error_in_formula_notation_mode_screenshot_2018-09-30_10-53-51

Workaround:
A way to make it work is to copy a correct string, e.g., '7 mod 6' into the editor line:
mod_workaround_pasting_string_screenshot_2018-09-30_11-04-56

Expected behavior:
Pressing the button MOD, or pressing the key 'm' should enter 'mod' into the formula editor line.