Give examples of double and float data type in java and explain the difference
Answers
Answered by
1
Answer:
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.16-May-2016
Similar questions
Science,
1 month ago
Social Sciences,
1 month ago
Math,
1 month ago
English,
3 months ago
English,
3 months ago
Social Sciences,
9 months ago
English,
9 months ago
Math,
9 months ago