Re: Help: Get the value of pi up to 200+ digits?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wong HoWang wrote:
> Dear all,
>
> I'm trying to do like this but failed:
>
> <?php
> ini_set('precision',16);
> echo pi();
> ?>
>
> How can I get more digits after . ?

I am fairly sure that you have to use BCMath for this:
http://www.php.net/manual/en/ref.bc.php

Give it a go and see what happens! :)

Regards,
Torgny

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux