C# integer data type

Article Directory

  • Blogger writing is not easy, kids need your encouragement
  • Thousands of waters and thousands of mountains are always in love, so please click a like first.
type of data meaning Ranges
sbyte Signed 8-bit integer -128 ~ 127(-2^7 ~ 2^7-1)
byte Unsigned 8-bit integer 0 ~ 255(0 ~ 2^8-1)
short Signed 16-bit integer -32768 ~ 32767(-2^15 ~ 2^15-1)
ushort Unsigned 16-bit integer 0 ~ 65535(0 ~ 2^16-1)
int Signed 32-bit integer -2147483648 ~ 2147483647 (-2^31 ~ 2^31-1) (±2.15 billion)
uint Unsigned 32-bit integer 0 ~ 4294967295 (0 ~ 2^32-1) (4.3 billion)
long Signed 64-bit integer -9223372036854775808 ~ 9223372036854775807(-2^63 ~ 2^63-1)
ulong Unsigned 64-bit integer 0 ~ 18446744073709551615(0 ~ 2^64-1)
  • About the blogger:
  • Industrial automation upper computer software engineer, machine vision algorithm engineer, motion control algorithm engineer. Currently working in the intelligent manufacturing automation industry. Blogger's mailbox: [email protected]
  • Help me like it. Haha.

Guess you like

Origin blog.csdn.net/cashmood/article/details/109091381