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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user