Hi,<div><br></div><div>The VisitFloatingLiteral in StmtPrint is defined as:</div><div><br><div> // FIXME: print value more precisely.</div><div> OS << Node->getValueAsApproximateDouble();</div><div><br>
</div><div><br></div><div>This may result in lost of precision when printing double precision value. For example,</div><div>"-3.247834652034740e3" will be printed as "-3.247835e+03"</div><div><br></div>
<div>Is there any way to *precisely* print out a double precision value (i.e., the same as it appears in the source code)?</div><div><br></div><div><br></div>Cheers,
</div><div>Zheng</div>