Posted by Torgny Bjers on 10/20/90 11:25
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
Navigation:
[Reply to this message]
|