NumberSize
in package
Table of Contents
Methods
- bnNumBits() : int
- Returns the number of bits used to store this number. Non-significant upper bits are not counted.
- bnNumBytes() : int
- Returns the number of minimum required bytes to store a given number. Non-significant upper bits are not counted.
- getCeiledByteSize() : float
- getFlooredByteSize() : float
Methods
bnNumBits()
Returns the number of bits used to store this number. Non-significant upper bits are not counted.
public
static bnNumBits(GmpMathInterface $adapter, GMP $x) : int
Parameters
- $adapter : GmpMathInterface
- $x : GMP
Tags
Return values
intbnNumBytes()
Returns the number of minimum required bytes to store a given number. Non-significant upper bits are not counted.
public
static bnNumBytes(GmpMathInterface $adapter, GMP $x) : int
Parameters
- $adapter : GmpMathInterface
- $x : GMP
Tags
Return values
intgetCeiledByteSize()
public
static getCeiledByteSize(GmpMathInterface $adapter, GMP $x) : float
Parameters
- $adapter : GmpMathInterface
- $x : GMP
Return values
floatgetFlooredByteSize()
public
static getFlooredByteSize(GmpMathInterface $adapter, GMP $x) : float
Parameters
- $adapter : GmpMathInterface
- $x : GMP