Skip to content

Integral Types

Integral types represent whole numbers. They differ in size and range.

sbyte sb = 100;
byte b = 255;
short sh = 30000;
ushort us = 60000;
int i = 1234567890;
uint ui = 4000000000;
long l = 9223372036854775807;
ulong ul = 18446744073709551615;
Console.WriteLine($"int max: {int.MaxValue}");
Terminal window
dotnet run
Terminal window
int max: 2147483647