Alex Rivera | Logout

Arbitrarily large integers in C#

Asked 2012-04-24T07:32:01.460
9

How can I implement this python code in c#?

Python code:

print(str(int(str("e60f553e42aa44aebf1d6723b0be7541"), 16)))

Result:

305802052421002911840647389720929531201

But in c# I have problems with big digits.

Can you help me?

I've got different results in python and c#. Where can be mistake?

Edit
Report

1 Answer

3

If you just want to be able to use larger numbers there is BigInteger which has a lot of digits.

answered 2012-04-24T07:37:11.927

Your Answer