# Day3 - Day 3 Number representations Make binary more human...

This preview shows pages 1–2. Sign up to view the full content.

Day 3 Number representations Make binary more human friendly o Hexadecimal representation – base 16 o Commonly called “hex” but don’t be confused, it is not base 6 it is base 16 o Character set 0-9, a-f (alternatively A-F) A=10, b = 11, c = 12, d =13, e = 14 and f = 15 o C notation is to prefix hex with symbol 0x (e.g. 0x12, 0xa3) Positional notation applies Benfits of Hex o Easy to move back and forth between Hex and binary (16 = 2^4) o To transform hex number to binary we expand each hex digit to 4bits of binary: 3 d 5 0 0011 1101 0101 0000 Binary to hex transformation o Same thing other way around What about fractions? o Positional number systems work on both sides of the decimal point (radix point) o If radix is r (n integer digits, m fractional digits): Look this up Two kinds of numbers o Integers – radix point is assumed to be at the far right end of the digits o Fixed point – radix point is at a given, fixed location Eg. 0100.1110

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

Day3 - Day 3 Number representations Make binary more human...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online