What does suffix 'f' mean in Java code?

前端 未结 5 1336
夕颜
夕颜 2020-12-03 22:21

Here\'s the explanatory code. The language is Java and the code uses Android.

fg.setTextSize(height*0.50f); //<-\'f\' is in the brackets

5条回答
  •  旧时难觅i
    2020-12-03 22:53

    It indicates 3 is float not integer in other case 0.50 is float not double. Just like in any other java program.

提交回复
热议问题