System.Numerics.BigInteger
represents a theoretically arbitrary large number Abs() | |
Add() | |
Compare() | |
CompareTo() | |
Divide() | |
DivRem() | |
Equals() | |
GetBitLength() | |
GetByteCount() | |
GetHashCode() | |
GreatestCommonDivisor() | |
IsEven | |
IsOne | |
IsPowerOfTwo | |
IsZero | |
Log() | |
Log10() | |
Max() | |
Min() | |
MinusOne | |
ModPow() | |
Multiply() | |
Negate() | |
One | |
Parse() | A static method to creates a BigInteger from a textual representation of a number. Compare with ToString() |
Pow() | |
Remainder() | |
Sign | |
Subtract() | |
ToByteArray() | |
ToString() | Creates a textual representation of the big integer in different formats, for example bigNum.ToString("X") returns the number's hexadecimal representation. Compare with Parse() |
TryFormat() | |
TryParse() | |
TryWriteBytes() | |
Zero |
BigInteger
. One interesting constructors takes an array of bytes to construct the big integer [byte[]] $bytes = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 $bigInt = [System.Numerics.BigInteger]::new($bytes)
$bigInt.ToString("X") 0A090807060504030201
$bigInt = [System.Numerics.BigInteger]::Parse("47390263963055590408705")
PS C:\> (123456789012345678901234567890n).GetType().FullName System.Numerics.BigInteger