[GiNaC-list] Change precision of numeric

Richard B. Kreckel kreckel at ginac.de
Thu Nov 1 22:46:07 CET 2007


Timo Schlüßler wrote:
> how can I change the precision of a numeric? E.g. when I've got a 
> numeric with 10,000 digits and then want that numeric truncated to 10 
> digits.

Try constructing a numeric representing 1.0 to 10 Digits and multiply 
your number with that.

   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


More information about the GiNaC-list mailing list