E.g: convert 0.5 to hex – Vodafone SS 08 User Manual
Page 38
![background image](/manuals/218494/38/background.png)
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