06.09.2016, 14:49
Integer divided by integer will remain integer. As such 8/1000 will simply yield 0. And as we all know, anything multiplied by 0 yields 0. The result will not be automatically converted to a floating point number. Instead of rounding the distance, round the final result.