0

Why 7 < 7.0 is true ?

i can't

23rd Dec 2016, 2:29 PM
Muh. Arief irfansyah
2 Respostas
+ 5
It isn't... You don't really have this result ( try it litterally, you'll see ) But in the other hand, what follows is true: "7" < "7.0" The difference is first you compare one int and one float, second you compare 2 strings ^^ Maybe you get it in your code, and compare two var which haven't the type expected ;)
23rd Dec 2016, 2:39 PM
visph
visph - avatar
0
thanks for answer
23rd Dec 2016, 6:04 PM
Muh. Arief irfansyah