Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

1.0 vs 1

Name: Anonymous 2010-05-22 15:00

Does it really matter if something is a float or an integer? I mean COME ON!

Name: Anonymous 2010-05-22 16:39

>>19
casting only converts size, not the contents.
lol@dongs$ cat > c.c
#include <stdio.h>

int main(void)
{
    float a = 1.0;
    printf("%d\n", (int)a);
    return 0;
}

^D
lol@dongs$ gcc c.c && ./a.out
1

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List