Basic C# Types
A type is the organization and format of information. For instance, an integer type is limited to 32 bits. It has a least significant bit, bit #0, which could be zero or one, and 30 more bits designating its magnitude. The most significant bit of an integer, the 31st, designates its sign as either positive or negative. Integers are positive or negative whole numbers. Another example is the float type, which conforms to IEEE 754 format and represents rational numbers. These are two different types. They have different formats and are generally used for different purposes. For example, integers can't be used for fractional representations, and floats can't be used very meaningfully in many situations as whole numbers. Some languages ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access