Computer Science, asked by martinbennysaviour11, 3 months ago

write the difference between int and float data types with examples​

Answers

Answered by SAMYAKMAHINDRAKAR
3

Answer:

Integers Floats.

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.

Answered by ShivangiBhardwaj
1

both types are different data types with their respective circumstances and coordination with the classes.

INT DATA TYPE RETURN THE VALUE THAT IS THE DEFAULT VALUE AS 0.

FLOAT DATA TYPE RETURNS THE VALUE THAT IS ITS DEFAULT VALUE AS 0.0F

WHAT'S THE DIFFERENCE BETWEEN INT AND FLOAT DATA TYPE THEY BOTH BELONG TO PRIMITIVE DATA TYPES

Similar questions