A SERVICE OF

logo

TU Dresden, 4/29/2008 Slide 38
chair
Numerical Issues - Useful Tips
Multiply by 2: Use shift left
Divide by 2: Use shift right
Log
2
N: Use shift
Sine, Cosine, Log: Use look up tables
To convert a fractional number to hex:
Num x 2
15
Then convert to hex
e.g: convert 0.5 to hex
0.5 x 2
15
= 16384
(16384)
dec
= (0x4000)
hex