0

Pls someone explain..?

float a= 2.5f; double b= 2.5; Both values are same...???

8th Nov 2020, 3:31 AM
WarLord
WarLord - avatar
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
8th Nov 2020, 3:55 AM
Avinesh
Avinesh - avatar