Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi all,
i need integer datatype in C# have size larger than long datatype , its preffered if there is unlimited size.
thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 19-Oct-11 3:33am    
Did you search hard? :-)
--SA

You could try a BigInteger[^]

Next time, try to google first?
 
Share this answer
 
Comments
Reiss 19-Oct-11 3:27am    
What is this mystical google that you speak of ;)
Sergey Alexandrovich Kryukov 19-Oct-11 3:31am    
Sure, my 5, but what can you do if Google is seemingly uptime no more than 5 minutes a day, most members cannot get time for their search... :-)
--SA
Take a look at the biginteger[^] type for .Net 4
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 19-Oct-11 3:33am    
Fantastic! Did you do it without Google? :-)
My 5.
--SA
Google is your friend, the BigInteger type can handle unlimited sized signed numbers:

http://msdn.microsoft.com/en-us/library/system.numerics.biginteger.aspx[^]
 
Share this answer
 
Comments
marjavic 19-Oct-11 3:53am    
System.Numerics IS IN FRAMEWORK 4 BUT I'M USING frame work 3.5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900