That is fixed point arithmetic, and yes it works. The loss of dynamic range and corresponding resolution for small numbers means that floating point is usually preferred except for special ...