feat: add root command and fix calc-02 exponent shortcuts

This commit is contained in:
2026-05-15 23:05:43 +02:00
parent cb45efff43
commit b45cfe8091
4 changed files with 16 additions and 6 deletions
+6
View File
@@ -243,11 +243,17 @@ function execute(name) {
}
} else if (name === 'pow10') {
pushEditingValueIfNeeded();
const exponent = calc.stack[0];
calc.remove(0);
calc.push(10);
calc.push(exponent);
calc.command('pow');
} else if (name === 'exp') {
pushEditingValueIfNeeded();
const exponent = calc.stack[0];
calc.remove(0);
calc.push(Math.E);
calc.push(exponent);
calc.command('pow');
} else {
pushEditingValueIfNeeded();