## Binary Conversion Charts

patrick — Mon, 2016-10-24 14:33

I have recently been reading through Write Great Code, Volume 1 by Randall Hyde and he had 2 useful charts I've seen before, but I haven't seen them in a long while so I figured I'd drop there here for my future reference.

Binary | Hexadecimal |
---|---|

%0000 | $0 |

%0001 | $1 |

%0010 | $2 |

%0011 | $3 |

%0100 | $4 |

%0101 | $5 |

%0110 | $6 |

%0111 | $7 |

%1000 | $8 |

%1001 | $9 |

%1010 | $A |

%1011 | $B |

%1100 | $C |

%1101 | $D |

%1110 | $E |

%1111 | $F |

So converting a hexadecimal value of $ABCD you would end up getting a binary value of %1010_1011_1100_1101.

Binary | Octal |
---|---|

%000 | 0 |

%001 | 1 |

%010 | 2 |

%011 | 3 |

%100 | 4 |

%101 | 5 |

%110 | 6 |

%111 | 7 |

So converting an octal value of 123q you would end up getting a binary value of %0_0101_0011.

## Trackback URL for this post:

https://blog.whitelionsoft.com/trackback/137