C: Dividieren

"volker wirth" <[email protected]>
Newsgroups gmane.linux.suse.programming
Organization http://freemail.web.de/
Message-ID <[email protected]>
Hallo,
das hört sich vermutlich etwas seltsam an, aber:
ich benutze Dev-C++4 mit cygnus;
Code:

float z = (1 / 2);
printf("%f", z);

und er sagt mir: 0.000000

Bei anderen Zahlen ist es genauso. Das hat mich doch _etwas_ überrascht.

Danke für die Hilfe, habe wahrscheinlich ein ziemlich großes Brett vorm
Kopf,

Volker

__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201


-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.