Advertisement
KodingKid

C# data types and when to use them (updated)

Jun 22nd, 2021
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. int; //4 bytes -2,147,483,648 to 2,147,483,647
  2. long; //8 bytes -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
  3. float; //4 bytes fractions with 6 to 7 decimal digits
  4. double; //8 bytes fractions with 15 decimal digits
  5. bool; //1 byte true or false values
  6. char; //2 byte single quoted character or letter
  7. string; //2 bytes per character used for phrases, text, or sequences of characters
  8. //i made a script exactly like this one but without the explanation of when to use said data types a while ago
  9. //here it is:
  10. //https://pastebin.com/bvphPRTc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement