© Radek Vystavěl 2017

Radek Vystavěl, C# Programming for Absolute Beginners, https://doi.org/10.1007/978-1-4842-3318-4_12

12. Understanding Different Kinds of Numbers

Radek Vystavěl

(1)Ondřjov, Czech Republic

In this chapter, you will study several more advanced topics concerning numbers and calculations, such as more numeric types, memory consumption, and overflow. If you do not need this much detail at this time, you can safely skip this chapter or just skim it.

More Numeric Types

You already know that there is a distinction between whole numbers and decimal numbers in computing. You use the int type for whole numbers, and you use the double type for decimal numbers.

But there are other numeric data types in C#. Although many of them exist mainly ...

Get C# Programming for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.