How to convert Fractional And MINUS decimal values to BINARY numbers

3 views (last 30 days)
HI I want to convert dec numbers like -1.234769 into binary numbers.
by using function Fr_dec2bin.m posted over here... I am able to convert 1.234769 number to binary number,
But Its not working for NEGETIVE number. I have to convert 1000 numbers so Its not possible one by one...
Please Help

Accepted Answer

Walter Roberson
Walter Roberson on 7 Oct 2011
There is more than one possible output format. Exactly which one would you like? Best give an example input and output and indicate how you will know whether the binary value represents a negative or positive number.
More background: old CSSM discussion

More Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!