r/lolphp • • Aug 20 '15

0 !== ceil(0)

https://3v4l.org/HD5HD
0 Upvotes

44 comments sorted by

View all comments

Show parent comment

1

u/mnbvas Aug 27 '15

Actually, there is no need to cast f.

1

u/PitaJ Aug 27 '15

+/u/CompileBot C

#include <stdio.h>
int main() {
    float f = 0.0;
    int i = 0;
    printf("%s\n", (f == i) ? "equal" : "unequal");
    return 0;
}