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

What am I missing here?

An explanation of what the problem is.