How to use large numbers in C#

All primitive type in every language have a limit as to what and how much they can store. We will be talking specifically about integers for now. Everyone has used different sizes of integral types to store a number, the most common being int. Here is a brief list of integral types we use on a daily basis. byte  0 - 255 short -32,768 to 32,767 int -2,147,483,648 to 2,147,483,647 long -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 If you know you are only going to use positive number, then you can use the unsigned version of each type, which removes negative values and doubles the positive values....

June 24, 2015 · 2 min · 280 words · Fahad