0

What does byte mean when it says that float has 4 bytes and double has 8 bytes?

I searched but i still dont quite get it, i think it means how many characters it has but im still not sure

7th Feb 2020, 11:24 AM
Odnantiev
Odnantiev - avatar
2 Respuestas
+ 4
It's about how many bytes it is required to store the value. float requires 4 bytes ---> float can store 2^(8*4) different values. double requires 8 bytes ---> double can store 2^(8*8) different values.
7th Feb 2020, 11:32 AM
Seb TheS
Seb TheS - avatar
+ 4
Just to clarify what bits and bytes are- https://www.sololearn.com/Discuss/2090896/?ref=app
7th Feb 2020, 11:38 AM
Avinesh
Avinesh - avatar