3 ms·
> Besides, infix-style calculators also seem to use a stack to handle operator precedence True, but simple calculators, even ones a bit more advanced than the
by roelschroeven 2y ago
> Besides, infix-style calculators also seem to use a stack to handle operator precedence
True, but simple calculators, even ones a bit more advanced than the one in the article (e.g. with a sqrt and/or % key) don't handle operator precedence. I'm not sure it's even correct to call them infix calculators, for that reason. They simply work sequentially; no stack needed.