I would say I’m pretty new to this but could someone explain the basics about data types, more specifically Integers, characters, boolean, string and floating-point numbers.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Types or datatypes say what kind of information you are able to store in a variable.
It is like you will assume that you have in your pocket a wallet with datatype “money”, thus you are able store “money” there but not “keys”.
Example datatypes:
Integer can store whole numbers:
5
12937
1298273
can’t store number with fractional part:
123.43
234.534634643
12452352.1235
can’t store strings:
“hello”
“nice to meet you”
floating point can store whole number and this with fractional part:
5
12937
1298273
123.43
234.534634643
12452352.1235
can’t store strings:
“hello”
“nice to meet you”
Characters can store single chars:
“a”
“n”
“d”
can’t store whole strings:
“hello”
“nice to meet you”
Boolean can store logical values, logical value answers the question if something is:
True
False
Physically booleans can be represented in different wayy: True could be 1 or any value except 0 and False can be 0 (like in C like languages)