Binary representation of stored integer of fi object
Mostra commenti meno recenti
I am using a lookup table with values ranging from 0 to pi/4.
These values are all less than one, i.e. 0 to .7854.
I am using the bin function to get the eight MSBs of a 16 bit number.
I noticed that bin(fi(.5000,0,16)) = 1000 0000 0000 0000 but bin(fi(.4555, 0, 16)) = 1110 1001 0011 0111
with bin(fi(.2500,0,16)) = 1000 0000 0000 0000.
Why do .5 and .25 have the same binary representation? Why does .4555 have a larger sized binary representation?
Risposta accettata
Più risposte (1)
Charles Jackel
il 18 Mar 2013
0 voti
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!