Hi,<div><br></div><div>While implementing a GiNaC based backend for my software I decided to replace doubles by GiNaC::exs. That seemed to work fine until I actually needed the final native value of the expression, so I changed my mind to use GiNaC::numerics instead, which works fine except for constants, since I'm unable to do things like</div>

<div><br></div><div>GiNaC::numeric angle = 2 * GiNaC::Pi;</div><div><br></div><div>is there a quick way to pass from a constant to a numeric? (or alternatively a way to turn expressions into doubles and I should go back to GiNaC::ex).</div>

<div><br></div><div>Thanks in advance.</div><div><br></div><div>David E. Narvaez</div>