0

why the float number is not perfectly stored in computer??

float

20th Sep 2016, 11:39 AM
Ramanathan Raveendran
Ramanathan Raveendran - avatar
3 ответов
+ 1
the computer stores only a certain number of digits. Because of that, values like 1/3 or 2/3 couldn't be stored exactly. 1/3 = 0.33333333...
20th Sep 2016, 2:05 PM
Amarie
0
why the computer store only a certain no of digits?
20th Sep 2016, 3:15 PM
Ramanathan Raveendran
Ramanathan Raveendran - avatar
0
because otherwise it would have to have infinite memory. But it can't because of how it is designed. And before you ask why : it's designed like that because it can't use efficiently more digits for a number
25th Sep 2016, 11:57 AM
Amaras A
Amaras A - avatar