📌Numeric (integral)

TypeSizeRange
byte8-bit0 to 255
sbyte8-bit-128 to 127
short16-bit-32,768 to 32,767
ushort16-bit0 to 65,535
int32-bit-2,147,483,648 to 2,147,483,647
uint32-bit0 to 4,294,967,295
long64-bit-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
ulong64-bit0 to 18,446,744,073,709,551,615
char16-bitA Unicode character

📌Numeric (Floating-point & Decimal)

TypeSizePrecision
float32-bit~7 digits
double64-bit~15-16 digits
decimal128-bit~28-29 digits (for financial use)

Other Value Types

  • bool → true or false
  • Structs → user-defined value type
  • Enums → named set of constants