Convert floating point or double base-10 value to any other base (and vice-versa)?
    1 回表示 (過去 30 日間)
  
       古いコメントを表示
    
Hello, I am using the dec2base and base2dec functions right now, but I have some floating values I want to convert to other bases. For example, '5.5' in base-10 converted to base-5 should return '10.2222222'.
How may I convert float or double values to different bases correctly? I do not intend to convert to bases higher than 10
Thank you for reading.
2 件のコメント
  Stephen23
      
      
 2020 年 4 月 20 日
				
      編集済み: Stephen23
      
      
 2020 年 4 月 20 日
  
			How do you intend to represent digits >9 ?
Or, assuming that you follow the hexadecimal tradition of using A, B, etc., digits greater than >Z ?
"How may I convert float or double values to different bases correctly"
I already told you that in my answer to your last question (just change the 16 to whatever base you want).
回答 (1 件)
参考
カテゴリ
				Help Center および File Exchange で Logical についてさらに検索
			
	製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

