How to convert decimal to binary which includes decimal values for eg 1.25.
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    LALIT PANKAJ GROVER
 am 7 Sep. 2021
  
    
    
    
    
    Kommentiert: LALIT PANKAJ GROVER
 am 14 Sep. 2021
            I tried using de2bi but it doesn't account for decimal values like 1.25, 3.2, etc. If somebody has a solution to this problem. 
0 Kommentare
Akzeptierte Antwort
  Sreedhar Arumugam
 am 8 Sep. 2021
        It is my understanding that you want to convert a floating point number in decimal format to its binary equivalent.
The de2bi and dec2bin functions are used to convert a decimal integer to its binary representation. It will not account for the fractional part of your number.
Please refer to this answer to understand how to convert a floating point number to its binary equivalent :
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Data Type Conversion 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!