0% found this document useful (0 votes)
25 views

Data Types Size Values: Sbyte Byte Short Ushort Int Uint Long Ulong Char Float Double Decimal Bool

This document describes common .NET data types including their size in bits and the range of values they can hold. It lists the sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, decimal, and bool data types along with their sizes from 8 to 128 bits and value ranges from -128 to 7.9 x 1028 or true/false.

Uploaded by

Taimoor Mazari
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Data Types Size Values: Sbyte Byte Short Ushort Int Uint Long Ulong Char Float Double Decimal Bool

This document describes common .NET data types including their size in bits and the range of values they can hold. It lists the sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, decimal, and bool data types along with their sizes from 8 to 128 bits and value ranges from -128 to 7.9 x 1028 or true/false.

Uploaded by

Taimoor Mazari
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Data Types

Size

Values

sbyte

8 bit

-128 to 127

byte

8 bit

0 to 255

short

16 bit

-32,768 to 32,767

ushort

16 bit

0 to 65,535

int

32 bit

-2,147,483,648 to 2,147,483,647

uint

32 bit

0 to 4,294,967,295

long

64 bit

-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

ulong

64 bit

0 to 18,446,744,073,709,551,615

char

16 bit

0 to 65535

float

32 bit

-1.5 x 1045 to 3.4 x 1038

double

64 bit

-5 x 10324 to 1.7 x 10308

decimal

128 bit

-1028 to 7.9 x 1028

bool

---

True or false

You might also like