E.g: convert 0.5 to hex – Vodafone SS 08 User Manual

Page 38

Advertising
background image

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

Advertising