Here's the explanatory code. The language is Java and the code uses Android.
fg.setTextSize(height*0.50f); //<-'f' is in the brackets
or
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
sWidth = w / 3f; // <-'f' is here
}
What does the suffix 'f' mean?
It indicates a float
literal.
It indicates 3 is float not integer in other case 0.50 is float not double. Just like in any other java program.
float ;)
it's a 3 that is a float, not an int
It's a float, not a double. This is basic Java (C) notation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With