承接 saki/bcmath-number-polyfill 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

saki/bcmath-number-polyfill

最新稳定版本:1.1.0

Composer 安装命令:

composer require saki/bcmath-number-polyfill

包简介

无描述信息

README 文档

README

Latest Stable Version Push codecov License PHP Version Require

Install

composer require saki/bcmath-number-polyfill 

This library requires the BCMath extension. Also, since this is a polyfill, it does not support PHP 8.4 or higher. For PHP 8.2 and 8.3 only.

Description

This is a polyfill for BcMath\Number class added in PHP 8.4. It achieves the same behavior as much as possible, but does not support operator overloading.

RoundingMode Enum is also included. However, if it has already been defined, it will not be defined twice.

New functions such as bcround() are not included in this library.

How to use

You can treat it like anything added in PHP 8.4.

use BcMath\Number; $number = new Number('1.23'); $rounded = $number->round(1, RoundingMode::AwayFromZero); var_dump($rounded); 

result:

object(BcMath\Number)#3 (2) { ["value"]=> string(3) "1.3" ["scale"]=> int(1) } 

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固