rpn(1): added alternative representation for powers

This commit is contained in:
Emma Tebibyte 2024-02-07 18:51:58 -07:00
parent d768a257a3
commit 4e040e0021
Signed by untrusted user: emma
GPG Key ID: 06FA419A1698C270

View File

@ -77,7 +77,7 @@ impl From<&str> for CalcType {
"-" | "" => Subtract, "-" | "" => Subtract,
"*" | "×" => Multiply, "*" | "×" => Multiply,
"/" | "÷" => Divide, "/" | "÷" => Divide,
"^" => Power, "^" | "**" => Power,
"//" => Floor, "//" => Floor,
"%" => Modulo, "%" => Modulo,
_ => { _ => {