Re: printing accuracy

new topic     » goto parent     » topic index » view thread      » older message » newer message

> Hello,
>
> I was wondering how to print numbers with precision to lots of decimal
> places, like a hundred or so. Is it possible to calculate pi to 100 or
> more decimal places and print the result on the screen.  All I've been
> able to do is 15 places and after that it is all zeros so I think it
> rounds it.  Is there a way to make it set the default or something to
> carry out as far as I want?
>

At that point I would resort to stringified numbers (see Perl's BigInt and
BigFloat modules for examples). However, this would be a bit slower, and would
also involve writing your own routines.

--
Cameron Kaiser * spectre at sserv.com * http://www.sserv.com/
--
Visit the leading Internet starting point today!
http://www.sserv.com/
--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu