C#Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Does anyone know if .NET has a class that allows you to create numbers of unlimited size. If so what would the class name be called and the namespace it is located in.
I'm pretty certain that there are NO programming languages that have a class that allows numbers of unlimited size (I'd be interested to hear different).
You'd have to create one for yourself but I imagine it would be pretty cumbersome to manage.
It is impossible to have "unlimited", you'd always be restricted by the amount of memory the computer had.
Well I didn't mean unlimited. What I actually meant with constraints of the hardware for a given machine. I knew I should have explained it when I was writing it and that someone or several people would bring up this issue. It's of course obvious you can't unlimited anything in the real physical world.
Anyways to make a short question longer for you people. Is there any class in .NET that will let you create a number with the limits of a given hardware on that machine or any machine connected to it or any medium that will be connected to it for storage in which you can share resources through clustered computers so you can do basic manipulation of that number?
In Java it's basically the BigNumber class and it seems as though it's specifically architectured for cryptography where you have all the methods necessary for RSA, AES, etc.
Anyways long question short create a larger size number than 64bits, which you can specify within limit of hardware of course ;). So ie I want a 1024 bit number or whatever.