S
Shi Jin
Hi there,
I have been thinking this for quite a while: if we are considering the
number of different representations of one type,say int and float,
is there any difference as long as they are the same bit long?
I am thinking this as an example for representing different colors. Is the
number of differnt colors a 32-bit integer can represent any differnt from
using a 32-bit floating point? It seems to me float has much more choices
than int. But just thinking of the binary possibility, they are both 2^32
kinds
of differnt combination of 1s and 0s. So they are the same in this sense.
I am confused.
Please advice.
Thanks a lot
Shi
I have been thinking this for quite a while: if we are considering the
number of different representations of one type,say int and float,
is there any difference as long as they are the same bit long?
I am thinking this as an example for representing different colors. Is the
number of differnt colors a 32-bit integer can represent any differnt from
using a 32-bit floating point? It seems to me float has much more choices
than int. But just thinking of the binary possibility, they are both 2^32
kinds
of differnt combination of 1s and 0s. So they are the same in this sense.
I am confused.
Please advice.
Thanks a lot
Shi