tcc-stupidos/tests/tests2/134_double_to_signed.c

13 lines
241 B
C
Raw Normal View History

#include <stdio.h>
int main() {
printf("%d\n", (int)-1.0);
double d = -1.0;
printf("%d\n", (int)d);
printf("%d\n", (int)-2147483648.0);
d = -2147483648.0;
printf("%d\n", (int)d);
printf("%llu\n", (unsigned long long)1e19);
}