+ 17
why is System.out.println(9f/4) // equals 2.25
why is the f neglected please help
3 Antworten
+ 3
Here is explained what the 'f' means:
https://stackoverflow.com/questions/9748160/why-f-is-placed-after-float-values
+ 16
thanks
+ 2
if we perform any operation between two different data type then automatically
result will be promoted to highest rang datatype.so output will be 2.25