Why pi value print using doubledatatype?? Instead of float?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why pi value print using doubledatatype?? Instead of float??

25th Apr 2019, 8:02 AM
Sudalaimuthu.S
Sudalaimuthu.S - avatar
2 Answers
+ 1
i think its the matter of precision, because double has 2x precision than float. i could be wrong though
25th Apr 2019, 8:05 AM
Taste
Taste - avatar
0
Mmm
25th Apr 2019, 8:18 AM
Sudalaimuthu.S
Sudalaimuthu.S - avatar