X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 24.67.16.79 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: help please! =) Organization: Systematic Software Message-ID: References: X-Newsreader: Forte Agent 1.9/32.560 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 19 Date: Sat, 16 Mar 2002 06:05:48 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: news1.calgary.shaw.ca 1016258748 24.71.223.147 (Fri, 15 Mar 2002 23:05:48 MST) NNTP-Posting-Date: Fri, 15 Mar 2002 23:05:48 MST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 16 Mar 2002 00:21:36 +1030, "james watmuff" wrote: > printf("%lf\n",expected_diff); // this prints some WIERD value l is a modifier for long ints f is a format for doubles remove the l and use %f as in your other printf() formats and it should work fine -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca) fake address use address above to reply tosspam AT aol DOT com abuse AT aol DOT com abuse AT yahoo DOT com abuse AT hotmail DOT com abuse AT msn DOT com abuse AT sprint DOT com abuse AT earthlink DOT com abuse AT cadvision DOT com abuse AT ibsystems DOT com uce AT ftc DOT gov spam traps