Changing signed integer 16 bit format to binary format.
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SeungHyun Cha
am 14 Apr. 2020
Kommentiert: SeungHyun Cha
am 14 Apr. 2020
How can I express the BIGGEST NEGATIVE number and SMALLEST POSITEVE number of a signed integer 16 bit format?
I know the range of singed integer 16 bit format is from -32768 to 32767, but...
Q1.I am not sure which value is the biggest negative and smallest positive.
Q2. Also, if there is negative integer value, how can I convert negative to binary?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 14 Apr. 2020
dec2bin(typecast(intmin('int16'),'uint16'))
dec2bin(typecast(intmax('int16'),'uint16'))
6 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!