Is there a way to store floats perfectly in a computer ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is there a way to store floats perfectly in a computer ?

I got this idea from the python course. we cant divide 1 by 3 perfectly. In this way we also cant store floats perfectly in a computer. Is there a way to fix it?

25th Jan 2019, 1:20 PM
Ahnaf
Ahnaf - avatar
2 Answers
+ 5
Is your question "can we store an infinite amount of digits in a finite space"?
25th Jan 2019, 3:59 PM
Zen
Zen - avatar
+ 1
No i meant that if we could store infinite digits, can the computer store those perfectly? But you have a point
26th Jan 2019, 10:38 AM
Ahnaf
Ahnaf - avatar