Home / Computer / Understanding Data Types With Functions and Types of Data Types

Understanding Data Types With Functions and Types of Data Types

Hearing the term data type may be a big question for some people. Even for those who are in the world the database may still be less familiar with this one term. This is very reasonable because the use of the data type itself more in the field of computer programming (programmer).

Before discussing the data type must be known that a data collected must have different structures – for example like the use of letters and numbers. And in this article we will cover more about the meaning, function and types of data types.

Information about this data type is very important, not only for those engaged in the programmer world but to the wider community as an additional insight. In addition you can also analyze all sorts of data or information obtained. For those who pursue the world of programming will definitely find the use of this data type in everyday life. Immediately for full review on the definition of data types and functions and the types you can see below:

Understanding Data Types

 Understanding data types is

The purpose of a data type is a set that you can meet on all data. By understanding the data type, you can also specify a value can be owned from the data or not. One form of application of data types in everyday life is in whole numbers. Since essentially the writing of a number to data can also vary, such as 5.5 or ¾. The numbers we mentioned are including non-integers, unlike integers 5, 6, 1, 3 and many more.

More concretely a data type can be found in the computer programming world. In the early stages of programming, you must first define the data type used. Examples of data types that are often used by programmers are Integer Real Double Char String and still many more

After determining the data type that will be used a programmer will immediately declare at the beginning of stage. This is intended to give specific limits or categories to the data that the program will use. The determination of memory can also be determined when the data type has been selected.

Data Type Function

A data type if properly understood will of course work properly. Both the programmer and the wider community will certainly be helped by a good understanding of the data type. We mentioned earlier that with the use of a good data type a programmer can give control or limitations on the program being created. By selecting the data type the programmer can also determine the memory to be used.

For the wider community to understand the data type also provides its own function. One example is about integers and non-integers (decimals, fractions and so on). On the determination of a water volume you will probably find the data of 1.5 liters. But on the calculation of goods such as cars will of course be written in whole numbers. It is impossible for a car to be 8.5 or another.

Types of Common Data Types

 types of data types and data type functions

Generally, the types of data types are grouped into 2 parts. The first is primitive data type and the second is non primitive data type . Primitive data type is a data type which by default has been defined / supported in a programming language or it can also be referred to as the basic data type most used by most programmers, for example integer, float, char, boolean and so on.

While non primitive data type is a data type which by default is not defined by a programming language and self-defined programmer itself. The most common example of this non primitive data type is strings and arrays.

Previously it had been briefly discussed that a data type consists of various types according to the data to be used. Of the many data types are not always all encountered because a programmer makes the program with the general provisions. Therefore there are also the most commonly used data types, such as Integer, Float and others. More details can be found below:

1. Integer

This type of data type can be defined as an integer. This means that a program that uses this Integer data type does not support the use of letters. In addition, the number used should also be round (does not contain decimal fractions). Examples of integer data types are 8, -12, 205, and others.

2. Float

Float data types are often also called real-number data types. If the Integer does not recognize fractional or decimal characters, then the Float data type can be written decimal characters (berkoma). In the Float data type there is also a Double data type that also supports the numbers berkoma. Examples of float data types are 3.14 or 1.2.

3. Char

The next type of data type is Char, this data type usually consists of a number, letter, punctuation or even special characters. It takes 1 byte or 8 bits of space in memory to store a character. In the programming language the char data type has no restrictions and usually uses double quotes (") on the front and back. Often also the writing of empty characters is replaced with the words "null".

4. String

The next type of data is called a String which consists of a set of characters of a certain length, and is often considered a basic data type. This is because until now String data types most often used by programmers. Almost the same as Char, writing String characters in programming languages ​​also begins and ends with double quotes and recognizes the writing of "null" for empty characters.

5. Array

Last is the Array data type and includes the composite data type as it can store. The data stored in the Array data type also belongs to the same or homogeneous type. In the programming language the use of Array data types is not directly declared like other data types, but often plays an important role in the use of data to be more structured.

As I already said that there are many data types that can be used in the world of programming. Below is a table of data types along with the size and range of values ​​of each type of data itself.

 The types of data types are

So far this discussion about the understanding of data types and their functions and types, the type of data type you can use in creating a program. The selection of appropriate and appropriate data types can save memory on your computer.


Check Also

Android Authority’s Comment Authority: Week 25 of 2018

Buongiorno, Android Authority readers! Right now I’m on vacation in Italy (Florence, to be exact), but …

%d bloggers like this: