Sunday, May 27, 2007

Number conversion

In this section I want to talk about how to convert between Decimal and Binary and Hexadecimal?

From Binary to Decimal.
you multiply by 2 with increasing degrees
for ex: 1000 is 2^3+0=8

From Decimal to Binary
You divide by 2 until 0 and you assemble the numbers backward
for ex: 8%2=0, 4%2=0, 2%2=0, 1%2=1 --> 1000

From Hexadecimal to Binary
You translate every character in the Hexadecimal to a 4bit binary.
Ex: AB-> 1010 1011

From Binary to Hexadecimal
You translate every 4bit from right to left and give the hexadecimal value
Ex: 11110010 -> F2



$40 off Craftsman 5 Drawer Homeowner Tool Center with Riser and Parts Bins $99.99 on sale 10/2-10/8
Sears Deal of the Day: Thule Car Top Carrier, Quest
Wholesale Fleece Blankets
400950_BuddhaGroove.com-Culture Infused Living: Home Accents, Jewelry, Accessories from around the world!
400948_Culture Infused Living: Home Accents, Jewelry, and accessories from around the world. CulturalElemen
504427_Save up to 75% on batteries and accessories at Brooklyn Battery Works!
504080_10% OFF Orders of $75 or More from Journelle.com! Use Promo Code: NOV11 (Valid 11/1 - 11/30/11)
502239_Brand names, bargain prices at shoezoo.com. If you don't love your new shoes, return them for free!

400949_GaneshMall.com-Culture Infused Living: Home Accents, Jewelry, and accessories from around the world!

No comments:

Post a Comment