<div dir="ltr"><div style="direction:ltr">Dear all ginac lovers, I have got some wrong results when performing some simple computations using ginac.</div><div style="direction:ltr">I have compiled and run the following c++ program using ginac-1.8.7, cln-1.3.7  (mingw64 compiler,  gcc version 14.2.0, windows 10 os), </div><div style="direction:ltr"><br></div><div style="direction:ltr;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">#include <ginac/ginac.h><br><br>using namespace std;<br>using namespace GiNaC;</div><div style="direction:ltr;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>int main()<br>{<br>    cout<<(numeric(0.1)+numeric(7))<<endl;<br>    cout<<(numeric("0.01")*numeric("9"))<<endl;<br>    cout<<(numeric("0.01")*numeric("99"))<<endl;<br>}<br></div><div style="direction:ltr"><br></div><div style="direction:ltr">the above program shows the following result:</div><div style="direction:ltr;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">7.1000000000000000056<br>0.089999999999999999996<br>0.98999999999999999995</div><div style="direction:ltr"><br></div><div style="direction:ltr">I have got some unwanted digits which look very ugly. I think the result should be </div><div style="direction:ltr">7.1</div><div style="direction:ltr">0.09</div><div style="direction:ltr">0.99</div><div style=""><br></div><div style="direction:ltr"><br></div><div style="direction:ltr;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Best regards,</div><div style="direction:ltr;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Mithun Bairagi</div></div>