Computer Science, asked by Ankityadav7663, 2 months ago

Float data type is higher then int

Answers

Answered by Eshwarsai4
0

Answer:

what the difference between the float and integer data type when the size is same in java? As you probably know, both of these types are 32-bits. int can hold only integer numbers, whereas float also supports floating point numbers (as the type names suggest).

Answered by rameshrajput16h
0

Answer:

Float vs integer

Integers are whole numbers. They can be positive, negative, or zero. ... Floating point numbers are numbers with a decimal. Like integers, -321, 497, 19345, and -976812 are all valid, but now 4.5, 0.0004, -324.984, and other non-whole numbers are valid too

Explanation:

The exponent allows type float to represent a larger range than that of type int . However, the 23-bit mantissa means that float supports exact representation only of integers whose representation fits within 23 bits; float supports only approximate representation of integers outside that range.

Similar questions