定制 haeckel/basic-decimal-arithmetic 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

haeckel/basic-decimal-arithmetic

Composer 安装命令:

composer require haeckel/basic-decimal-arithmetic

包简介

Simple interface for doing basic arithmetic with decimal numbers with arbitrary precision

README 文档

README

codecov ci Static Badge Static Badge Packagist License

Haeckel/php-basic-decimal-arithmetic

Simple php library for working with decimal numbers in arbitrary precision.

Features

  • Calculator interface the four basic arithmetic operations and modulo
  • a type decimal num to encapsulate strings in decimal notation (main motivation was the bcmath required format)
  • a cmpResult enum to have readable values for comparison results. Used by calculator, but may as well be used for e.g. strcmp

Installation

Install the package vai composer by running:

composer require haeckel/exception

Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Source Code

Support

Let us know if you have issues.

Issue Tracker

License

LGPL-3.0-or-later

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2025-12-19