Dla potrzeb obliczeń arytmetycznych o dużej precyzji, PHP oferuje Kalkulator Binarny (ang. Binary Calculator). Kalkulator Binarny operuje na liczbach dowolnej wielkości i precyzji, zapisanych jako typ string.
Począwszy od wersji PHP 4.0.4, biblioteka libbcmath jest dostarczana razem z PHP. To rozszerzenie nie wymaga zatem żadnych zewnętrznych bibliotek.
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.
The windows version of PHP has built in support for this extension. You do not need to load any additional extension in order to use these functions.
The behaviour of these functions is affected by settings in php.ini.
For further details and definition of the PHP_INI_* constants see ini_set().
Here is a short explanation of the configuration directives.
Number of decimal digits for all bcmath functions.
Poprzedni | Spis treści | Następny |
aspell_suggest | Początek rozdziału | bcadd |