I wonder what was thinking the team that designed that sensor...

Anyway maybe this can be of some help
http://dt.picbasic.co.uk/CODEX/N-BitMath

Ioannis