blah blah blah is here! blah blah » Close

up0down
link

Is there a C# counterpart for Java's BigInteger class? I am creating an application that must use integers beyond the range of the decimal class. If not, are there any other ideas for working with very large integers?
Thanks in advance!

last answered 2 years ago

1 answers

up0down
link

We have 'long', UInt64, Int64, Int32, UInt32. Theast four are part of CTS.

up0down
link

I know that in the ACM contests that they have problems for BigInt classes for C++, but I don't know any for C#. I bet someone made one for it.

up0down
link

For OleDbType Enumerations there is a member (BigInt):
BigInt - A 64-bit signed integer (DBTYPE_I8). This maps to Int64.
So you can use Int64 for your really big numbers.
enjoy
_Vivek

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback