Hi Dave,
I've used the DIV32 function alot for stuff like this. In your example I would do something
like this.
50" - 6" = 44"
44" / 1024(10bit) = 0.042968
convert this number to word constant in your program 42968
multiply a/d result by 42968
the very next line must be DIV32 statement (word var = DIV32 10000)
then add your 6" offset (+ 600)

example: (a/d result = 1023)
1023 * 42968 = 43956264 '(32bit result you can't access but DIV32 can)
res = DIV32 10000 '(res = 4395)
res = res + 600 '(res = 4995 hundreth inches or 49.95 inches)

Mike