C# Primitive Types
C# Type | decimal (m) | double (d) | float (f) | long | int | short | char | bool | byte |
Real | Real | Real | Whole | Whole | Whole | Single Unicode chars | Boolean | Integral Number | |
Precision | 28-29 | 15 | 7 | None | None | None | n/a | n/a | None |
.NET Type | Decimal | Double | Single | Int64 | Int32 | Int16 | Char | Boolean | Byte |
Bytes | 16 | 8 | 4 | 8 | 4 | 2 | 2 | 1 | 1 |
Bits | 128 | 64 | 32 | 64 | 32 | 16 | 16 | 8 | 8 |
Range | … | … | … | … | -2.1B to 2.1B | -32,768 to 32,767 | Unicode chars | True/ False | 0 to 255 |