Computer Science, asked by Anonymous, 8 months ago

Floating point literal and double litoral ? difference between both ​

Answers

Answered by Anonymous
11

Answer:

Floating point literal" refers to any literal of a floating-point type. Both float and double are floating-point types. ... # are double , unless you append f or F (same difference) to the literal to force it to be float instead.

Answered by Anonymous
4

Answer:

Floating point literal" refers to any literal of a floating-point type. Both float and double are floating-point types. ... # are double , unless you append f or F (same difference) to the literal to force it to be float instead.

Though both float and double datatype are used to represent floating-point numbers in Java, a double data type is more precise than float. A double variable can provide precision up to 15 to 16 decimal points as compared to float precision of 6 to 7 decimal digits.

MARK BRAINLIEST

Similar questions