Commit 985d7423 authored by Stéphane Adjemian's avatar Stéphane Adjemian

Removed prefixing of doubles between -1 and 1 with 0.

This resulted in values like `00.018` in the AST's NumConstNode which
cannot be read by some JSON readers (e.g. Mathworks' jsondecode).
parent bef537d4
Pipeline #2992 passed with stages
in 8 minutes and 32 seconds
......@@ -451,8 +451,6 @@ void
NumConstNode::writeJsonAST(ostream &output) const
{
output << R"({"node_type" : "NumConstNode", "value" : )";
if (double testval = datatree.num_constants.getDouble(id); testval < 1.0 && testval > -1.0 && testval != 0.0)
output << "0";
output << datatree.num_constants.get(id) << "}";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment