Does this work?? I doubt that. Since totalInches is float, totalInches/12 returns float value.

So e.g if totalInches is 9 then  totalInches/12 returns 0.75. 

Please verify this.