C# 클래스 Jurassic.BigInteger

Represents an arbitrarily large signed integer.
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
One BigInteger
Zero BigInteger

공개 메소드들

메소드 설명
Abs ( BigInteger b ) : BigInteger

Gets the absolute value of a BigInteger object.

Add ( BigInteger left, BigInteger right ) : BigInteger

Adds two BigInteger values and returns the result.

BigInteger ( int value ) : System

Initializes a new instance of the BigInteger structure using a 32-bit signed integer value.

BigInteger ( long value ) : System

Initializes a new instance of the BigInteger structure using a 64-bit signed integer value.

Compare ( BigInteger a, BigInteger b ) : int

Returns -1 if a < b, 0 if they are the same, or 1 if a > b.

Equals ( object obj ) : bool

Returns a value that indicates whether the current instance and a specified BigInteger object have the same value.

FromDouble ( double value ) : BigInteger

Returns a new instance BigInteger structure from a 64-bit double precision floating point value.

GetHashCode ( ) : int

Returns the hash code for the current BigInteger object.

InPlaceDecrement ( ) : void

Decrements the current value of the BigInteger object.

LeftShift ( BigInteger value, int shift ) : BigInteger

Shifts a BigInteger value a specified number of bits to the left.

Log ( BigInteger value, double baseValue ) : double

Returns the logarithm of a specified number in a specified base.

Multiply ( BigInteger left, BigInteger right ) : BigInteger

Returns the product of two BigInteger values.

MultiplyAdd ( BigInteger b, int m, int a ) : BigInteger

Multiply by m and add a.

MultiplyPow5 ( BigInteger b, int k ) : BigInteger

Computes b x 5 ^ k.

Negate ( BigInteger value ) : BigInteger

Negates a specified BigInteger value.

Parse ( string str ) : BigInteger

Converts the string representation of a number to its BigInteger equivalent.

Pow ( int radix, int exponent ) : BigInteger

Equivalent to BigInteger.Pow but with integer arguments.

Quorem ( BigInteger &dividend, BigInteger divisor ) : int

Calculates the integer result of dividing dividend by divisor then sets dividend to the remainder.

RightShift ( BigInteger value, int shift ) : BigInteger

Shifts a BigInteger value a specified number of bits to the right.

Note: unlike System.Numerics.BigInteger, negative numbers are treated identically to positive numbers.

SetupQuorum ( BigInteger &dividend, BigInteger &divisor ) : void

Modifies the given values so they are suitable for passing to Quorem.

SetupQuorum ( BigInteger &dividend, BigInteger &divisor, BigInteger &other ) : void

Modifies the given values so they are suitable for passing to Quorem.

Subtract ( BigInteger left, BigInteger right ) : BigInteger

Subtracts one BigInteger value from another and returns the result.

ToDouble ( ) : double

Returns a double that corresponds to the BigInteger value.

ToString ( ) : string

Converts the numeric value of the current BigInteger object to its equivalent string representation.

비공개 메소드들

메소드 설명
BigInteger ( uint bits, int wordCount, int sign ) : System
CountLeadingZeroBits ( uint value ) : int

Returns the number of leading zero bits in the given 32-bit integer.

메소드 상세

Abs() 공개 정적인 메소드

Gets the absolute value of a BigInteger object.
public static Abs ( BigInteger b ) : BigInteger
b BigInteger A number.
리턴 BigInteger

Add() 공개 정적인 메소드

Adds two BigInteger values and returns the result.
public static Add ( BigInteger left, BigInteger right ) : BigInteger
left BigInteger The first value to add.
right BigInteger The second value to add.
리턴 BigInteger

BigInteger() 공개 메소드

Initializes a new instance of the BigInteger structure using a 32-bit signed integer value.
public BigInteger ( int value ) : System
value int A 32-bit signed integer.
리턴 System

BigInteger() 공개 메소드

Initializes a new instance of the BigInteger structure using a 64-bit signed integer value.
public BigInteger ( long value ) : System
value long A 64-bit signed integer.
리턴 System

Compare() 공개 정적인 메소드

Returns -1 if a < b, 0 if they are the same, or 1 if a > b.
public static Compare ( BigInteger a, BigInteger b ) : int
a BigInteger
b BigInteger
리턴 int

Equals() 공개 메소드

Returns a value that indicates whether the current instance and a specified BigInteger object have the same value.
public Equals ( object obj ) : bool
obj object The object to compare.
리턴 bool

FromDouble() 공개 정적인 메소드

Returns a new instance BigInteger structure from a 64-bit double precision floating point value.
public static FromDouble ( double value ) : BigInteger
value double A 64-bit double precision floating point value.
리턴 BigInteger

GetHashCode() 공개 메소드

Returns the hash code for the current BigInteger object.
public GetHashCode ( ) : int
리턴 int

InPlaceDecrement() 공개 메소드

Decrements the current value of the BigInteger object.
public InPlaceDecrement ( ) : void
리턴 void

LeftShift() 공개 정적인 메소드

Shifts a BigInteger value a specified number of bits to the left.
public static LeftShift ( BigInteger value, int shift ) : BigInteger
value BigInteger The value whose bits are to be shifted.
shift int The number of bits to shift to the left. /// Can be negative to shift to the right.
리턴 BigInteger

Log() 공개 정적인 메소드

Returns the logarithm of a specified number in a specified base.
public static Log ( BigInteger value, double baseValue ) : double
value BigInteger A number whose logarithm is to be found.
baseValue double The base of the logarithm.
리턴 double

Multiply() 공개 정적인 메소드

Returns the product of two BigInteger values.
public static Multiply ( BigInteger left, BigInteger right ) : BigInteger
left BigInteger The first number to multiply.
right BigInteger The second number to multiply.
리턴 BigInteger

MultiplyAdd() 공개 정적인 메소드

Multiply by m and add a.
public static MultiplyAdd ( BigInteger b, int m, int a ) : BigInteger
b BigInteger
m int
a int
리턴 BigInteger

MultiplyPow5() 공개 정적인 메소드

Computes b x 5 ^ k.
public static MultiplyPow5 ( BigInteger b, int k ) : BigInteger
b BigInteger
k int
리턴 BigInteger

Negate() 공개 정적인 메소드

Negates a specified BigInteger value.
public static Negate ( BigInteger value ) : BigInteger
value BigInteger The value to negate.
리턴 BigInteger

Parse() 공개 정적인 메소드

Converts the string representation of a number to its BigInteger equivalent.
public static Parse ( string str ) : BigInteger
str string A string that contains the number to convert.
리턴 BigInteger

Pow() 공개 정적인 메소드

Equivalent to BigInteger.Pow but with integer arguments.
public static Pow ( int radix, int exponent ) : BigInteger
radix int The number to be raised to a power.
exponent int The number that specifies the power.
리턴 BigInteger

Quorem() 공개 정적인 메소드

Calculates the integer result of dividing dividend by divisor then sets dividend to the remainder.
public static Quorem ( BigInteger &dividend, BigInteger divisor ) : int
dividend BigInteger The number that will be divided.
divisor BigInteger The number to divide by.
리턴 int

RightShift() 공개 정적인 메소드

Shifts a BigInteger value a specified number of bits to the right.
Note: unlike System.Numerics.BigInteger, negative numbers are treated identically to positive numbers.
public static RightShift ( BigInteger value, int shift ) : BigInteger
value BigInteger The value whose bits are to be shifted.
shift int The number of bits to shift to the right.
리턴 BigInteger

SetupQuorum() 공개 정적인 메소드

Modifies the given values so they are suitable for passing to Quorem.
public static SetupQuorum ( BigInteger &dividend, BigInteger &divisor ) : void
dividend BigInteger The number that will be divided.
divisor BigInteger The number to divide by.
리턴 void

SetupQuorum() 공개 정적인 메소드

Modifies the given values so they are suitable for passing to Quorem.
public static SetupQuorum ( BigInteger &dividend, BigInteger &divisor, BigInteger &other ) : void
dividend BigInteger The number that will be divided.
divisor BigInteger The number to divide by.
other BigInteger Another value involved in the division.
리턴 void

Subtract() 공개 정적인 메소드

Subtracts one BigInteger value from another and returns the result.
public static Subtract ( BigInteger left, BigInteger right ) : BigInteger
left BigInteger The value to subtract from.
right BigInteger The value to subtract.
리턴 BigInteger

ToDouble() 공개 메소드

Returns a double that corresponds to the BigInteger value.
public ToDouble ( ) : double
리턴 double

ToString() 공개 메소드

Converts the numeric value of the current BigInteger object to its equivalent string representation.
public ToString ( ) : string
리턴 string

프로퍼티 상세

One 공개적으로 정적으로 프로퍼티

Gets a value that represents the number one (1).
public static BigInteger,Jurassic One
리턴 BigInteger

Zero 공개적으로 정적으로 프로퍼티

Gets a value that represents the number zero (0).
public static BigInteger,Jurassic Zero
리턴 BigInteger