Chapter 20. Numbers and Enumerations
Simple types are value types that are a subset of the built-in types in C#, although, in fact, the types are defined as part of the .NET Framework Class Library (.NET FCL). Simple types are made up of several numeric types and a
bool type. These numeric types consist of a decimal type (
decimal), nine integral types (
byte, char, int, long, sbyte, short, uint, ulong, ushort), and two floating-point types (
float, double). Table 20-1 lists the simple types and their fully qualified names in the .NET Framework.
Table 20-1. The simple data types
Fully qualified name
When dealing with floating point data types, precision can be can be more important than the range of the data values. The precision of the floating point data types is listed in Table 20-2.
Table 20-2. Floating point precision