xp-framework/math 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

xp-framework/math

最新稳定版本:v10.0.0

Composer 安装命令:

composer require xp-framework/math

包简介

Big number handling

关键字:

README 文档

README

Build status on GitHub XP Framework Module BSD Licence Requires PHP 7.4+ Supports PHP 8.0+ Latest Stable Version

Big number handling

API: BigInt

public class math.BigInt extends math.BigNum {
  public math.BigInt __construct(int|float|string|parent $in)

  public math.BigNum add(int|float|string|parent $other)
  public math.BigNum subtract(int|float|string|parent $other)
  public math.BigNum multiply(int|float|string|parent $other)
  public math.BigNum divide(int|float|string|parent $other)
  public math.BigNum add0(int|float|string|parent $other)
  public math.BigNum subtract0(int|float|string|parent $other)
  public math.BigNum multiply0(int|float|string|parent $other)
  public math.BigNum divide0(int|float|string|parent $other)
  public math.BigNum power(int|float|string|parent $other)
  public math.BigNum modulo(int|float|string|parent $other)
  public math.BigNum bitwiseAnd(int|float|string|parent $other)
  public math.BigNum bitwiseOr(int|float|string|parent $other)
  public math.BigNum bitwiseXor(int|float|string|parent $other)
  public math.BigNum shiftRight(int|float|string|parent $shift)
  public math.BigNum shiftLeft(int|float|string|parent $shift)
  public int byteValue()
  public int intValue()
  public float floatValue()
}

API: BigFloat

public class math.BigFloat extends math.BigNum {
  public math.BigFloat __construct(int|float|string|parent $in)

  public math.BigNum add(int|float|string|parent $other)
  public math.BigNum subtract(int|float|string|parent $other)
  public math.BigNum multiply(int|float|string|parent $other)
  public math.BigNum divide(int|float|string|parent $other)
  public math.BigNum power(int|float|string|parent $other)
  public math.BigFloat ceil()
  public math.BigFloat floor()
  public math.BigFloat round([int $precision= 0])
  public int compare(int|float|string|parent $other, ?int $precision= null)
  public bool equals(int|float|string|parent $other, ?int $precision= null)
  public int intValue()
  public float floatValue()
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-12-08