Go to the documentation of this file.
35 printf(
"LONG_MAX=%li\n", LONG_MAX);
36 printf(
" INT_MAX=%li\n", INT_MAX);
38 printf(
"Zadejte cislo: "); fflush(stdout);
39 if (1 != scanf(
"%lf", &dabl)) {
41 fprintf(stderr,
"isnan(dabl): %d, spatny fstup, zadej desetinne cislo!\n", isnan(dabl));
46 printf(
"Cela cast cisla: %g je %li (pomoci (long)typecast)\n", dabl, (
long)dabl);
47 printf(
"Cela cast cisla: %g je %li (pomoci long prirazeni)\n", dabl, l=dabl);
48 printf(
"Cela cast cisla: %33.3f je %33.3f (pomoci floor math.h)\n", dabl, floor(dabl));