Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
18 lines
473 B
Markdown
18 lines
473 B
Markdown
# BCComp Polyfill
|
|
|
|
A polyfill for the `bcmath` function, `bccomp`.
|
|
|
|
## Why?
|
|
|
|
I maintain a library that only uses `bccomp`, and doesn't use the rest of `bcmath`. I wanted to be able to work on it on machines that weren't compiled with `bcmath` support, so I wrote this polyfill.
|
|
|
|
## Install
|
|
|
|
```bash
|
|
composer require yuloh/bccomp-polyfill
|
|
```
|
|
|
|
## Usage
|
|
|
|
If the function `bccomp` does not exist in the global namespace, this library will declare it's own `bccomp` function.
|