1. printing accuracy

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?

Thanks,
Lewis Townsend
LewisArt
Keroltar at hotmail.com

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view message » categorize

2. Re: printing accuracy

> 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 message » categorize

3. Re: printing accuracy

>  would also involve writing your own routines.

And we know that Euphoria programmers wouldn't like jump at that chance!!!

 Joe Phillips, Assistant Director
 University Computing and Telecommunications
 Texas Wesleyan University     817-531-4284

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu