Decimal places changing strangely in floats? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Decimal places changing strangely in floats?

Can someone explain the way the smaller decimal places change in printing these different floats? https://code.sololearn.com/cTAITw2HD57P/?ref=app

26th Apr 2020, 5:25 AM
S K
1 Answer
+ 2
Hey bro , float value have certain limitation, it is used for small decimal numerical value not for all so please use double for better resu
26th Apr 2020, 5:59 AM
Raj Kalash Tiwari
Raj Kalash Tiwari - avatar