Hallo,
folgendes Problem:
,----[ test.c ]-
| #include
| #include
|
| int main (int argc, char** argv)
| {
| printf("%f\n", round(0.5));
|
| return 0;
| }
`----
[~] $ gcc -W -Wall -Wno-unused -lm -o test test.c
test.c: In function `main':
test.c:6: warning: implicit declaration of function `round'
test.c:6: warning: double format, different type arg (arg 2)
Das Ergebnis ist auch unbrauchbar (2.890182). Warum?
round() scheint mir die einzige Funktion zu sein, die "normal" rundet,
also x.5 immer nach oben.
Gruss,
Bernhard
--
_________ http://www.bwalle.de _________________________________________________
Ich glaube nur an Statistiken, die ich selbst gefälscht habe.
-- Winston Churchill