what’s the reason that double will work but float will not
Favdice -coupon collector
Hey @kunalsaini8950
Float range is 1.2E-38 to 3.4E+38
Double range is 2.3E-308 to 1.7E+308
In this question if you use float, answer will overflow the range of float and give wrong answer.
If your doubt is resolved please mark it as closed.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.