fixed output of numeric output from expr().
This commit is contained in:
1 parent
3f14b28435
commit
db59e9e87c
4 files changed
+8
-6
No files matched your search
@@ -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.");
|
||||
|
||||
Reference in new issue
Block a user