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 ...
Get C# Unleashed 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.