prob with printing Binary Digit

Let's talk about algorithms!

Moderator: Board moderators

Post Reply
sv90
New poster
Posts: 17
Joined: Wed Feb 01, 2006 8:27 pm
Location: Dhaka,Bangladesh

prob with printing Binary Digit

Post by sv90 »

how can i print binary numbers

mamun
A great helper
Posts: 286
Joined: Mon Oct 03, 2005 1:54 pm
Location: Bangladesh
Contact:

Post by mamun »

Doing manual calculation

sv90
New poster
Posts: 17
Joined: Wed Feb 01, 2006 8:27 pm
Location: Dhaka,Bangladesh

Post by sv90 »

in dont undrestand manually means what...
using bit mask oir anything elas

mamun
A great helper
Posts: 286
Joined: Mon Oct 03, 2005 1:54 pm
Location: Bangladesh
Contact:

Post by mamun »

You can use bit masking as well as the usual way we're taught to convert decimal into binary ie. keep on dividing by 2. You can search the net for both's description. But be careful if you're using bit mask, you have to know your compiler well.

Post Reply

Return to “Algorithms”