- Category: Microsoft.NET

In this blog I will tell how many Data types in C#. There are following Data types built into C#

and each one stores a different kind of data.

Note: whole number – its means it doesn’t have a decimal point.

Data Type | Description | Bits |

int | int can store any whole Number from -2,147,483,648 to 2,147,483,647 | 32 bits |

string | String can hold text of any length | |

bool | bool is a Boolean value it’s either true or false | 8 bits |

float | float can store any decimal numbers | 32 bits |

byte | byte can store any whole numbers between 0 and 255 | 8 bits |

sbyte | sbyte can store any whole number from -127 to 128 | 8 bits |

short | short can store any whole number from -32,767 to 32,768 | 16 bits |

ushort | ushort can store any whole number from 0 to 65,535 | 16 bits |

uint | uint can store any whole number from 0 to 4,294,967,295 | 32 bits |

long | long can store any number between minus and plus 9 billion billion | 64 bits |

ulong | ulong can store any number between 0 and 18 billion billion | 64 bits |

double | double can store 15-16 significant digit | 64 bits |

decimal | Decimal can store 28-29 significant digit | 128 bits |

## Comments (no comments yet)