0
Pls someone explain..?
float a= 2.5f; double b= 2.5; Both values are same...???
1 Antwort
+ 1
Though you should always avoid this kind of comparison, here is a clear explanation on why is it so.
https://stackoverflow.com/questions/7392167/comparing-float-and-double-primitives-in-java