Here\'s the explanatory code. The language is Java and the code uses Android.
fg.setTextSize(height*0.50f); //<-\'f\' is in the brackets
It indicates 3 is float not integer in other case 0.50 is float not double. Just like in any other java program.