delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/21/00:00:04

From: "Lars O. Hansen" <lars DOT o DOT hansen AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C preprocessor not capable of floating point division ?
Date: Sat, 21 Dec 2002 05:53:03 +0100
Organization: 1&1 Internet AG
Lines: 17
Message-ID: <au0s3b$hr4$1@news.online.de>
References: <au0qd9$hkj$1 AT news DOT online DOT de> <200212210436 DOT gBL4aBR01780 AT envy DOT delorie DOT com>
NNTP-Posting-Host: p5083854e.dip0.t-ipconnect.de
X-Trace: news.online.de 1040446379 18276 80.131.133.78 (21 Dec 2002 04:52:59 GMT)
X-Complaints-To: abuse AT online DOT de
NNTP-Posting-Date: 21 Dec 2002 04:52:59 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

> This is a simple misunderstanding of the C language.
>
> The number 8 is an integer value.
>
> The number 8.0 is a floating point value.
>
> When you divide two integers, you get an integer.
>
> When you divide two floats, you get a float.
>
> The preprocessor doesn't do any optimization, but the compiler often
> does.  It still obeys the rules above.


thanks, OK


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019