From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charlie Gordon" Subject: Re: complex variable Date: Tue, 14 Sep 2004 10:16:33 +0200 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: References: <20040908120658.GZ6985@lug-owl.de> <20040910200519.GJ19967@lug-owl.de> <20040913215742.GZ19967@lug-owl.de> Return-path: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org "Jan-Benedict Glaw" wrote in message news:20040913215742.GZ19967@lug-owl.de... >> - The creal and cimag macros apply to all 3 complex types. > Well, there has been some type-conversion in between :-) ----------- 7.3.9.2 The cimag functions Sysnopsis #include double cimag(double complex z); float cimagf(float complex z); long double cimagl(long double complex z); ----------- Well the truth is elsewhere ;-) I have seen this paragraph, but it is a smoke screen, as there are also creal and cimag *macros* mentioned in C99 that are described as applicable to all three complex types and extract the corresponding part without intermediary or final conversion (!) C99 has created such a mine field around complex numbers and floating point in general... Chqrlie.