I really don't think this is a precision problem, the answer is .226-ish... here's the exact code:
val = I(i,j)
bucketSize
pos = val / bucketSize
'I' is just a matrix I'm taking values from. Here is the output from MatLab:
val =
29
bucketSize =
128
pos =
0
what am I missing?