Forum: Computer Science Jul 15th, 2009 |
| Replies: 6 Views: 422 Link1 (http://www.amazon.com/Structures-Algorithms-Addison-Wesley-Computer-Information/dp/0201000237/ref=sr_1_1?ie=UTF8&s=books&qid=1247645039&sr=1-1) Link2... |
Forum: Computer Science Jul 8th, 2009 |
| Replies: 12 Views: 1,143 This may help you, if you want to use Java:
http://www.sap-img.com/java/java-bitwise-shift-operators.htm |
Forum: Computer Science Jul 8th, 2009 |
| Replies: 12 Views: 1,143 You can use binaries. Start with 000...0, then shift your binary left and add 1 and so on. So you get e.g.:
0000
0001 (shift left --> 0010 plus 1 --> 0011)
0011
0111
1111
You only have to... |
Forum: C Jul 2nd, 2009 |
| Replies: 6 Views: 1,516 What have you done by now?
We can help you, but I assume, that no one writes the hole program for you. So try by yourself und ask about concrete problems. |
Forum: Computer Science Jul 2nd, 2009 |
| Replies: 4 Views: 433 e.g.: 0.25
0.25 * 2 = 0.5 --> 0*2^(-1)
0.5 * 2 = 1.0 --> 1*2^(-2)
--> (0.25)decimal = (0.01)binary |