Upload
menisantixs
View
26
Download
1
Embed Size (px)
Citation preview
Data Types
Data Types
• Figures & Facts = alphanumeric characters• Alphanumeric characters can be grouped
into 5 data types:– Boolean– Real– Integer– Text/String– Date/Time
Boolean• This data type holds one of two values, for
example:– yes/no – true/false – 0 / 1 – Male/Female
• A boolean data type is used to answer questions where there are exactly two options, three options would mean it was no longer boolean data.
• Example:– Has the heating been turned on? Yes / No – Are you male? Yes / No
Real
• This data types contains NUMBERS which will have DECIMAL places
• Example:– Room length in metres 45.76m wide– Prices of Goods £1.75– Height of People 1.82m
Integer
• This data types contains WHOLE NUMBERS with NO decimal place.
• Example:– TV Channel 1– C0ding Responses 1 – 4– House Prices £275000
Text/String
• This is alphanumeric, contains numbers, text and symbols
• Example:– Post Code RM8 1JT– Telephone Number 0208 270 4242– Address 10 Downing Street
Date/Time
• This contains numbers and letters, which depend on format used, could be used to display date, time
• Example: Date 25th October 2009
or 25/10/09
Time 12.45.20