Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

what is the binary equivalent of -.015 (decimal)

Status
Not open for further replies.

quer

Junior Member level 1
Joined
Nov 17, 2007
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,365
please help...:cry:
 

Code:
0.015 x 2 = 0.03 => 0
0.03  x 2 = 0.06 => 0
0.06  x 2 = 0.12 => 0
0.12  x 2 = 0.24 => 0
0.24  x 2 = 0.48 => 0
0.48  x 2 = 0.96 => 0
0.96  x 2 = 1.92 => 1
0.92  x 2 = 1.84 => 1
0.84  x 2 = 1.68 => 1
0.68  x 2 = 1.36 => 1
0.36  x 2 = 0.72 => 0
----------------------
0.015 => 0.00000011110
----------------------

Take 2's complement of 0.015
---------------------------
1's complement =>  1.11111100001
+ 1            => 10.11111100001

----------------------
-0.015 => 10.11111100001
----------------------
I guess this is how it should be...not sure though since its been a long time I did binary conversion manually :D
 

    quer

    Points: 2
    Helpful Answer Positive Rating
I basically aggree with the calculation. The number of integer bits however depends on the unspecified number range and the number of fractional bits on the also unspecified resolution.

There isn't simply one unequivocal binary equivalent.
 

    quer

    Points: 2
    Helpful Answer Positive Rating
thank you! :D
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top