C# 클래스 Microsoft.Scripting.Math.BigInteger

상속: IFormattable, IComparable, IConvertible
파일 보기 프로젝트 열기: o2platform/O2.Platform.Projects 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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[]

메소드 상세

Abs() 공개 메소드

public Abs ( ) : BigInteger
리턴 BigInteger

Add() 공개 정적인 메소드

public static Add ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
리턴 BigInteger

AsDecimal() 공개 메소드

public AsDecimal ( Decimal &ret ) : bool
ret Decimal
리턴 bool

AsInt32() 공개 메소드

public AsInt32 ( int &ret ) : bool
ret int
리턴 bool

AsInt64() 공개 메소드

public AsInt64 ( long &ret ) : bool
ret long
리턴 bool

BigInteger() 공개 메소드

public BigInteger ( BigInteger copy ) : System
copy BigInteger
리턴 System

BitwiseAnd() 공개 정적인 메소드

public static BitwiseAnd ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
리턴 BigInteger

BitwiseOr() 공개 정적인 메소드

public static BitwiseOr ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
리턴 BigInteger

Compare() 공개 정적인 메소드

public static Compare ( BigInteger x, BigInteger y ) : int
x BigInteger
y BigInteger
리턴 int

CompareTo() 공개 메소드

public CompareTo ( object obj ) : int
obj object
리턴 int

Create() 공개 정적인 메소드

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

Create() 공개 정적인 메소드

public static Create ( decimal v ) : BigInteger
v decimal
리턴 BigInteger

Create() 공개 정적인 메소드

public static Create ( double v ) : BigInteger
v double
리턴 BigInteger

Create() 공개 정적인 메소드

public static Create ( int v ) : BigInteger
v int
리턴 BigInteger

Create() 공개 정적인 메소드

public static Create ( long v ) : BigInteger
v long
리턴 BigInteger

DivRem() 공개 정적인 메소드

public static DivRem ( BigInteger x, BigInteger y, BigInteger &remainder ) : BigInteger
x BigInteger
y BigInteger
remainder BigInteger
리턴 BigInteger

Divide() 공개 정적인 메소드

public static Divide ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
리턴 BigInteger

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetTypeCode() 공개 메소드

public GetTypeCode ( ) : TypeCode
리턴 TypeCode

IsNegative() 공개 메소드

public IsNegative ( ) : bool
리턴 bool

IsPositive() 공개 메소드

public IsPositive ( ) : bool
리턴 bool

IsZero() 공개 메소드

public IsZero ( ) : bool
리턴 bool

LeftShift() 공개 정적인 메소드

public static LeftShift ( BigInteger x, int shift ) : BigInteger
x BigInteger
shift int
리턴 BigInteger

Mod() 공개 정적인 메소드

public static Mod ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
리턴 BigInteger

ModPow() 공개 메소드

public ModPow ( BigInteger power, BigInteger mod ) : BigInteger
power BigInteger
mod BigInteger
리턴 BigInteger

ModPow() 공개 메소드

public ModPow ( int power, BigInteger mod ) : BigInteger
power int
mod BigInteger
리턴 BigInteger

Multiply() 공개 정적인 메소드

public static Multiply ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
리턴 BigInteger

Negate() 공개 정적인 메소드

public static Negate ( BigInteger x ) : BigInteger
x BigInteger
리턴 BigInteger

OnesComplement() 공개 메소드

public OnesComplement ( ) : BigInteger
리턴 BigInteger

Power() 공개 메소드

public Power ( int exp ) : BigInteger
exp int
리턴 BigInteger

RightShift() 공개 정적인 메소드

public static RightShift ( BigInteger x, int shift ) : BigInteger
x BigInteger
shift int
리턴 BigInteger

Square() 공개 메소드

public Square ( ) : BigInteger
리턴 BigInteger

Subtract() 공개 정적인 메소드

public static Subtract ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
리턴 BigInteger

ToBoolean() 공개 메소드

public ToBoolean ( IFormatProvider provider ) : bool
provider IFormatProvider
리턴 bool

ToByte() 공개 메소드

public ToByte ( IFormatProvider provider ) : byte
provider IFormatProvider
리턴 byte

ToByteArray() 공개 메소드

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[]
리턴 byte[]

ToChar() 공개 메소드

public ToChar ( IFormatProvider provider ) : char
provider IFormatProvider
리턴 char

ToDateTime() 공개 메소드

public ToDateTime ( IFormatProvider provider ) : System.DateTime
provider IFormatProvider
리턴 System.DateTime

ToDecimal() 공개 메소드

public ToDecimal ( ) : decimal
리턴 decimal

ToDecimal() 공개 메소드

public ToDecimal ( IFormatProvider provider ) : decimal
provider IFormatProvider
리턴 decimal

ToDouble() 공개 메소드

public ToDouble ( IFormatProvider provider ) : double
provider IFormatProvider
리턴 double

ToFloat64() 공개 메소드

public ToFloat64 ( ) : double
리턴 double

ToInt16() 공개 메소드

public ToInt16 ( IFormatProvider provider ) : short
provider IFormatProvider
리턴 short

ToInt32() 공개 메소드

public ToInt32 ( ) : int
리턴 int

ToInt32() 공개 메소드

public ToInt32 ( IFormatProvider provider ) : int
provider IFormatProvider
리턴 int

ToInt64() 공개 메소드

public ToInt64 ( ) : long
리턴 long

ToInt64() 공개 메소드

public ToInt64 ( IFormatProvider provider ) : long
provider IFormatProvider
리턴 long

ToSingle() 공개 메소드

public ToSingle ( IFormatProvider provider ) : float
provider IFormatProvider
리턴 float

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( IFormatProvider provider ) : string
provider IFormatProvider
리턴 string

ToType() 공개 메소드

public ToType ( Type conversionType, IFormatProvider provider ) : object
conversionType System.Type
provider IFormatProvider
리턴 object

TryToFloat64() 공개 메소드

public TryToFloat64 ( double &result ) : bool
result double
리턴 bool

Xor() 공개 정적인 메소드

public static Xor ( BigInteger x, BigInteger y ) : BigInteger
x BigInteger
y BigInteger
리턴 BigInteger

operator() 공개 정적인 메소드

public static operator ( ) : BigInteger
리턴 BigInteger

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool