Введение
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.
Версия PHP для
Windows имеет встроенную поддержку данного расширения. Это означает, что
для использования данных функций не требуется загрузка никаких
дополнительных расширений.
Настройка во время выполнения
Поведение этих функций зависит от установок в php.ini.
Таблица 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().
Краткое разъяснение конфигурационных
директив.
- bcmath.scaleinteger
Number of decimal digits for all bcmath functions. Смотрите также
bcscale().
Типы ресурсов
Данное расширение не определяет никакие типы ресурсов.
Предопределенные константы
Данное расширение не определяет никакие константы.