alierossi
Newbie level 6
floating point to binary
hi..
how can i convert value 0.3 and -0.3 to binary to store the binary value in my rom?
can anyone give an idea.
should i do it like this.....
i try to convert it to 8 bit.
so the last bit is for the sign number. then i get the answer is 00010011 for value 0.3 and 10010011 for -0.3.
my answer is correct or not?
hi..
how can i convert value 0.3 and -0.3 to binary to store the binary value in my rom?
can anyone give an idea.
should i do it like this.....
i try to convert it to 8 bit.
so the last bit is for the sign number. then i get the answer is 00010011 for value 0.3 and 10010011 for -0.3.
my answer is correct or not?