rounding issues

* convert ints to float before using them in a division
* round the result to eliminate very small numbers
fixing extensionPath for mechanic