COMPUTER FUNDAMENTALS

COMPUTER APPLICATIONS

DATABASE MANAGEMENT SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The data type that represents a decimal number is____
A
string
B
float
C
integer
D
boolean
E
long integer
Explanation: 

Detailed explanation-1: -What Does Float Mean? In computer science, a float is a data type composed of a number that is not an integer, because it includes a fraction represented in decimal format.

Detailed explanation-2: -The decimal data type is an exact numeric data type defined by its precision (total number of digits) and scale (number of digits to the right of the decimal point).

Detailed explanation-3: -Integers and floats are two different kinds of numerical data. An integer (more commonly called an int) is a number without a decimal point. A float is a floating-point number, which means it is a number that has a decimal place. Floats are used when more precision is needed.

Detailed explanation-4: -A decimal variable contains a floating decimal point type. In other words, a number is represented in this number type using decimal numbers (0-9).

There is 1 question to complete.