Float math using only variables, how to define decimal places?

You could also fix it by casting z or x to a float in the first case.