For arbitrary precision mathematics PHP offers the Binary Calculator which
supports numbers of any size and precision, represented as strings.
Since PHP 4.0.4, libbcmath is bundled with PHP. You don't need any
external libraries for this extension.
In PHP 4, these functions are only available if PHP was
configured with --enable-bcmath.
In PHP 3, these functions are only available if PHP was
NOT configured with --disable-bcmath.
Deze functies worden automatisch ingebouwd in de
windows versie van PHP. Er zijn geen extra handelingen nodig om deze
functies te gebruiken.
Het gedrag van deze functies wordt be?loed vanuit php.ini.
Tabel 1. BC math configuration options
| Name | Default | Changeable |
|---|
| bcmath.scale | 0 | PHP_INI_ALL |
For further details and definition of the PHP_INI_* constants see
ini_set().
Here's a short explanation of
the configuration directives.
- bcmath.scale
integer
Number of decimal digits for all bcmath functions. See also
bcscale().
Deze extensie maakt geen gebruik van resources.
Deze extensie definieert geen constanten.