how to convert -2.5 into binary number?

7 次查看(过去 30 天)
i can convert 2.5, 2, -2 decimal values into binary number but when converting -2.5 binary output is same as 2.5 value,please help me
  2 个评论
Geoff Hayes
Geoff Hayes 2014-6-13
What is the code that you are using to convert these numbers into binary?
dpb
dpb 2014-6-13
What form of a binary number do you expect for a floating point value? IEEE-754 single, double, some other encoding????

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by