C# Class Microsoft.Scripting.Math.BigInteger

Inheritance: IFormattable, IComparable, IConvertible
Afficher le fichier Open project: o2platform/O2.Platform.Projects Class Usage Examples

Méthodes publiques

Méthode Description
Abs ( ) : BigInteger
Add ( BigInteger x, BigInteger y ) : BigInteger
AsDecimal ( Decimal &ret ) : bool
AsInt32 ( int &ret ) : bool
AsInt64 ( long &ret ) : bool
BigInteger ( BigInteger copy ) : System
BitwiseAnd ( BigInteger x, BigInteger y ) : BigInteger
BitwiseOr ( BigInteger x, BigInteger y ) : BigInteger
Compare ( BigInteger x, BigInteger y ) : int
CompareTo ( object obj ) : int
Create ( byte v ) : BigInteger

Create a BigInteger from a little-endian twos-complement byte array (inverse of ToByteArray())

Create ( decimal v ) : BigInteger
Create ( double v ) : BigInteger
Create ( int v ) : BigInteger
Create ( long v ) : BigInteger
DivRem ( BigInteger x, BigInteger y, BigInteger &remainder ) : BigInteger
Divide ( BigInteger x, BigInteger y ) : BigInteger
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetTypeCode ( ) : TypeCode
IsNegative ( ) : bool
IsPositive ( ) : bool
IsZero ( ) : bool
LeftShift ( BigInteger x, int shift ) : BigInteger
Mod ( BigInteger x, BigInteger y ) : BigInteger
ModPow ( BigInteger power, BigInteger mod ) : BigInteger
ModPow ( int power, BigInteger mod ) : BigInteger
Multiply ( BigInteger x, BigInteger y ) : BigInteger
Negate ( BigInteger x ) : BigInteger
OnesComplement ( ) : BigInteger
Power ( int exp ) : BigInteger
RightShift ( BigInteger x, int shift ) : BigInteger
Square ( ) : BigInteger
Subtract ( BigInteger x, BigInteger y ) : BigInteger
ToBoolean ( IFormatProvider provider ) : bool
ToByte ( IFormatProvider provider ) : byte
ToByteArray ( ) : byte[]

Return the value of this BigInteger as a little-endian twos-complement byte array, using the fewest number of bytes possible. If the value is zero, return an array of one byte whose element is 0x00.

ToChar ( IFormatProvider provider ) : char
ToDateTime ( IFormatProvider provider ) : System.DateTime
ToDecimal ( ) : decimal
ToDecimal ( IFormatProvider provider ) : decimal
ToDouble ( IFormatProvider provider ) : double
ToFloat64 ( ) : double
ToInt16 ( IFormatProvider provider ) : short
ToInt32 ( ) : int
ToInt32 ( IFormatProvider provider ) : int
ToInt64 ( ) : long
ToInt64 ( IFormatProvider provider ) : long
ToSingle ( IFormatProvider provider ) : float
ToString ( ) : string
ToString ( IFormatProvider provider ) : string
ToType ( Type conversionType, IFormatProvider provider ) : object
TryToFloat64 ( double &result ) : bool
Xor ( BigInteger x, BigInteger y ) : BigInteger
operator ( ) : BigInteger
operator ( ) : bool

Private Methods

Méthode Description
AppendRadix ( uint rem, uint radix, char tmp, StringBuilder buf, bool leadingZeros ) : void
AsUInt32 ( uint &ret ) : bool
AsUInt64 ( ulong &ret ) : bool
BigInteger ( int sign ) : System
Create ( uint v ) : BigInteger
Create ( ulong v ) : BigInteger
DivModUnsigned ( uint u, uint v, uint &q, uint &r ) : void
Exponent ( byte v ) : ushort
GetBits ( ) : uint[]
GetLength ( uint data ) : int
GetNormalizeShift ( uint value ) : int
IFormattable ( string format, IFormatProvider formatProvider ) : string
InternalAdd ( uint x, int xl, uint y, int yl ) : uint[]
IsOdd ( ) : bool
Mantissa ( byte v ) : ulong
Negative ( byte v ) : bool
Normalize ( uint u, int l, uint un, int shift ) : void
TestDivisionStep ( uint un, uint vn, uint q, uint u, uint v ) : void
TestNormalize ( uint u, uint un, int shift ) : void
TestResult ( uint u, uint v, uint q, uint r ) : void
ToSByte ( IFormatProvider provider ) : sbyte
ToString ( uint radix ) : string
ToUInt16 ( IFormatProvider provider ) : ushort
ToUInt32 ( ) : uint
ToUInt32 ( IFormatProvider provider ) : uint
ToUInt64 ( ) : ulong
ToUInt64 ( IFormatProvider provider ) : ulong
Unnormalize ( uint un, uint &r, int shift ) : void
add0 ( uint x, int xl, uint y, int yl ) : uint[]
copy ( uint v ) : uint[]
div ( uint n, int &nl, uint d ) : uint
extend ( uint v, bool &seenNonZero ) : uint
getOne ( bool isNeg, uint data, int i, bool &seenNonZero ) : uint
makeTwosComplement ( uint d ) : uint[]

Do an in-place twos complement of d and also return the result.

resize ( uint v, int len ) : uint[]
sub ( uint x, int xl, uint y, int yl ) : uint[]

Method Details

Abs() public méthode

public Abs ( ) : BigInteger
Résultat BigInteger

Add() public static méthode

public static Add ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
Résultat BigInteger

AsDecimal() public méthode

public AsDecimal ( Decimal &ret ) : bool
ret Decimal
Résultat bool

AsInt32() public méthode

public AsInt32 ( int &ret ) : bool
ret int
Résultat bool

AsInt64() public méthode

public AsInt64 ( long &ret ) : bool
ret long
Résultat bool

BigInteger() public méthode

public BigInteger ( BigInteger copy ) : System
copy BigInteger
Résultat System

BitwiseAnd() public static méthode

public static BitwiseAnd ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
Résultat BigInteger

BitwiseOr() public static méthode

public static BitwiseOr ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
Résultat BigInteger

Compare() public static méthode

public static Compare ( BigInteger x, BigInteger y ) : int
x BigInteger
y BigInteger
Résultat int

CompareTo() public méthode

public CompareTo ( object obj ) : int
obj object
Résultat int

Create() public static méthode

Create a BigInteger from a little-endian twos-complement byte array (inverse of ToByteArray())
public static Create ( byte v ) : BigInteger
v byte
Résultat BigInteger

Create() public static méthode

public static Create ( decimal v ) : BigInteger
v decimal
Résultat BigInteger

Create() public static méthode

public static Create ( double v ) : BigInteger
v double
Résultat BigInteger

Create() public static méthode

public static Create ( int v ) : BigInteger
v int
Résultat BigInteger

Create() public static méthode

public static Create ( long v ) : BigInteger
v long
Résultat BigInteger

DivRem() public static méthode

public static DivRem ( BigInteger x, BigInteger y, BigInteger &remainder ) : BigInteger
x BigInteger
y BigInteger
remainder BigInteger
Résultat BigInteger

Divide() public static méthode

public static Divide ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
Résultat BigInteger

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetTypeCode() public méthode

public GetTypeCode ( ) : TypeCode
Résultat TypeCode

IsNegative() public méthode

public IsNegative ( ) : bool
Résultat bool

IsPositive() public méthode

public IsPositive ( ) : bool
Résultat bool

IsZero() public méthode

public IsZero ( ) : bool
Résultat bool

LeftShift() public static méthode

public static LeftShift ( BigInteger x, int shift ) : BigInteger
x BigInteger
shift int
Résultat BigInteger

Mod() public static méthode

public static Mod ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
Résultat BigInteger

ModPow() public méthode

public ModPow ( BigInteger power, BigInteger mod ) : BigInteger
power BigInteger
mod BigInteger
Résultat BigInteger

ModPow() public méthode

public ModPow ( int power, BigInteger mod ) : BigInteger
power int
mod BigInteger
Résultat BigInteger

Multiply() public static méthode

public static Multiply ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
Résultat BigInteger

Negate() public static méthode

public static Negate ( BigInteger x ) : BigInteger
x BigInteger
Résultat BigInteger

OnesComplement() public méthode

public OnesComplement ( ) : BigInteger
Résultat BigInteger

Power() public méthode

public Power ( int exp ) : BigInteger
exp int
Résultat BigInteger

RightShift() public static méthode

public static RightShift ( BigInteger x, int shift ) : BigInteger
x BigInteger
shift int
Résultat BigInteger

Square() public méthode

public Square ( ) : BigInteger
Résultat BigInteger

Subtract() public static méthode

public static Subtract ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
Résultat BigInteger

ToBoolean() public méthode

public ToBoolean ( IFormatProvider provider ) : bool
provider IFormatProvider
Résultat bool

ToByte() public méthode

public ToByte ( IFormatProvider provider ) : byte
provider IFormatProvider
Résultat byte

ToByteArray() public méthode

Return the value of this BigInteger as a little-endian twos-complement byte array, using the fewest number of bytes possible. If the value is zero, return an array of one byte whose element is 0x00.
public ToByteArray ( ) : byte[]
Résultat byte[]

ToChar() public méthode

public ToChar ( IFormatProvider provider ) : char
provider IFormatProvider
Résultat char

ToDateTime() public méthode

public ToDateTime ( IFormatProvider provider ) : System.DateTime
provider IFormatProvider
Résultat System.DateTime

ToDecimal() public méthode

public ToDecimal ( ) : decimal
Résultat decimal

ToDecimal() public méthode

public ToDecimal ( IFormatProvider provider ) : decimal
provider IFormatProvider
Résultat decimal

ToDouble() public méthode

public ToDouble ( IFormatProvider provider ) : double
provider IFormatProvider
Résultat double

ToFloat64() public méthode

public ToFloat64 ( ) : double
Résultat double

ToInt16() public méthode

public ToInt16 ( IFormatProvider provider ) : short
provider IFormatProvider
Résultat short

ToInt32() public méthode

public ToInt32 ( ) : int
Résultat int

ToInt32() public méthode

public ToInt32 ( IFormatProvider provider ) : int
provider IFormatProvider
Résultat int

ToInt64() public méthode

public ToInt64 ( ) : long
Résultat long

ToInt64() public méthode

public ToInt64 ( IFormatProvider provider ) : long
provider IFormatProvider
Résultat long

ToSingle() public méthode

public ToSingle ( IFormatProvider provider ) : float
provider IFormatProvider
Résultat float

ToString() public méthode

public ToString ( ) : string
Résultat string

ToString() public méthode

public ToString ( IFormatProvider provider ) : string
provider IFormatProvider
Résultat string

ToType() public méthode

public ToType ( Type conversionType, IFormatProvider provider ) : object
conversionType System.Type
provider IFormatProvider
Résultat object

TryToFloat64() public méthode

public TryToFloat64 ( double &result ) : bool
result double
Résultat bool

Xor() public static méthode

public static Xor ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
Résultat BigInteger

operator() public static méthode

public static operator ( ) : BigInteger
Résultat BigInteger

operator() public static méthode

public static operator ( ) : bool
Résultat bool