From: "Lars O. Hansen" Newsgroups: comp.os.msdos.djgpp Subject: Re: C preprocessor not capable of floating point division ? Date: Sat, 21 Dec 2002 05:58:12 +0100 Organization: 1&1 Internet AG Lines: 7 Message-ID: References: NNTP-Posting-Host: p5083854e.dip0.t-ipconnect.de X-Trace: news.online.de 1040446687 18338 80.131.133.78 (21 Dec 2002 04:58:07 GMT) X-Complaints-To: abuse AT online DOT de NNTP-Posting-Date: 21 Dec 2002 04:58:07 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > But DJ Delorie is right, the preprocessor or compiler which does expression evaluation beforehand > "obeyes" the rules of x86 "integer division", so 4/8 is 0. so it's 0 even when assigned to a float: float a=4/8 results in a being 0.