Re: Help: Get the value of pi up to 200+ digits?
| From: | Oliver Grätz | Date: | Thu, 01 Sep 2005 13:56:48 +0000 |
| Subject: | Re: Help: Get the value of pi up to 200+ digits? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221688@lists.php.net to get a copy of this message | ||
Wong HoWang schrieb:
> but my server configure don't have bcmath enabled, is there any other way to
> do so?
Since the internal routines of PHP have limited precision, you these
options:
- Find a way to activate bcmath (not likely to happen on a shared
hosting account)
- Find an external program that you can install and use (if you have
shared hosting an ssh, you can probably install a command line version
of bcmath)
- find a web service (http://de.php.net/soap) that solves the problem
(perhaps kind of overkill)
- DIY (do it yourself). Implement an arbitrary precision PI algorithm in
PHP (or perhaps somebody has already done this).
AllOLLi
____________
"It's just sex, it's totally harmless."
[Gabrielle on DH109]