All Questions
5 questions
0
votes
1
answer
80
views
Numerics BigInteger.Remainder (Mod) doesn't work with negative divisors
Consider the following equations:
10 % 3 = 1
10 % -3 = -2
10001 % 30 = 11
10001 % -30 = -19
C#'s System.Numerics.BigInteger Seems to produce positive results for negative divisors, as if ...
2
votes
2
answers
593
views
Why am I getting a system overflow using big integer (System.Numerics)?
I am getting this error: System.OverflowException: 'The value is not a number.'
I was under the impression that big integer could store any sized value (500 ^ 500 in this case), so I don't understand ...
1
vote
1
answer
257
views
How do I compare hex representation of 2 BigIntegers
I need to compare sha256 hashes according to bitcoin proof of work algorithm. So the requirement is to create an upper boundary by setting a target difficulty and then create hashes of data + nonce ...
0
votes
0
answers
33
views
C# Create BigInteger from string of different base [duplicate]
How can I create a Numerics.BigInteger object from a string of another base in C#, like binary or hex string?
For example:
...
30
votes
5
answers
19k
views
byte[] to unsigned BigInteger?
Motivation:
I would like to convert hashes (MD5/SHA1 etc) into decimal integers for the purpose of making barcodes in Code128C.
For simplicity, I prefer all the resulting (large) numbers to be ...