Different data types and their uses
- The different data types that is available for creating or developing a program on software. An example of programming software would be Microsoft Visual Studio. With this software, many data types are used which can drive an event.
- The different data types available for programming are String, Integer, Single, Double, Boolean and Date.
- Data Type: String
Use of String: A String can be used as a form of a character e.g. “a” or a string of characters e.g. “abcdefg”. It can be any type of text e.g. “Hello World!”.
• Alphabetic – A to Z, a to z, space
• Special characters - £$%&
• Numbers that are not used for calculations.
- Data Type: Integer
Use of Integer: An Integer can be used as a whole number e.g. a number between 0 and 10. If I had a variable name called First Number as an integer, the code would look like Dim FirstNumber as Integer.
- …show more content…
12345.67
- Data Type: Double
Use of Double: A Double can be used as decimal numbers with less than 14 significant digits e.g. 12345678.78
- Data Type: Boolean
Use of Boolean: A Boolean can be used for a question with two possible answers that a value to a question e.g. is the car yellow? Yes or No. Other range of value can be true or false. As a code, a Boolean would look like Dim answer as Boolean.
Importance of data