webit / bcmath-bundle

BcMath 包装器的 Symfony 2 集成

安装:4,271

依赖者: 0

建议者: 0

安全: 0

星标: 2

关注者: 2

分支: 1

开放问题: 0

类型:bundle

1.2 2017-02-14 16:41 UTC

This package is auto-updated.

Last update: 2024-09-20 21:43:54 UTC


README

安装

Composer:将 webit/bcmath-bundle 添加到 composer.json

{
    "require": {
        "php": ">=5.3.2",
        "webit/bcmath-bundle": "~1.1"
    }
}

使用

您可以设置默认的 BcMathNumber 计算精度(config.yml

webit_bc_math:
    scale: 10 #default to 8

BcMath 包装器 文档:[README.md](https://github.com/dbojdo/bcmath/blob/master/README.md)