fix: Prevent extra space in scientific notation exponent

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-03-14 14:07:31 -06:00
committed by Tanner
parent b369cb0c3b
commit 68aa187f71
+3 -1
View File
@@ -292,7 +292,9 @@ function displayOutput(num) {
} else { } else {
num = numStr; num = numStr;
} }
num = num.replace("-","- "); // fix padding for '-' if (num.charAt(0) === '-') {
num = '- ' + num.substr(1);
}
g.setFont('7x11Numeric7Seg', 2); g.setFont('7x11Numeric7Seg', 2);
if (num.length > RESULT_MAX_LEN) { if (num.length > RESULT_MAX_LEN) {
if (num.indexOf("E") < 0) if (num.indexOf("E") < 0)