2017 © Pedro Peláez
 

library math

Big number handling

image

xp-framework/math

Big number handling

  • Monday, May 29, 2017
  • by thekid
  • Repository
  • 2 Watchers
  • 0 Stars
  • 39,497 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

Math

Build status on GitHub XP Framework Module BSD Licence Requires PHP 7.0+ Supports PHP 8.0+ Latest Stable Version, (*1)

Big number handling, (*2)

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()
}

The Versions

29/05 2017

dev-master

9999999-dev http://xp-framework.net/

Big number handling

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

29/05 2017

v8.0.0

8.0.0.0 http://xp-framework.net/

Big number handling

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

28/08 2016

v7.1.0

7.1.0.0 http://xp-framework.net/

Big number handling

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

21/02 2016

v7.0.0

7.0.0.0 http://xp-framework.net/

Big number handling

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

09/12 2015

v6.6.0

6.6.0.0 http://xp-framework.net/

Big number handling

  Sources   Download

BSD-3-Clause

The Requires

 

module xp