fixed output of numeric output from expr().

This commit is contained in:
Brad Arant committed 2025-12-02 15:56:31 -08:00
1 parent 3f14b28435
commit db59e9e87c
4 files changed
+8 -6

No files matched your search

+5
View File
@@ -64,6 +64,11 @@ namespace jet {
Operand op(parm1.string, tag);
string = op.string;
isNumber = op.isNumber;
if(isNumber) {
doubleValue = op.doubleValue;
string = std::format("{:.12f}", doubleValue);
string.removeTrailingZeros();
}
boolean = op.boolean;
} else
throw coreutils::Exception("Expecting ) at end of EXPR expression.");