From: "Chris Schumann" Subject: Re: Round off errors Newsgroups: comp.os.msdos.djgpp References: <01bd3e0c$200881c0$LocalHost AT alfredoc> Message-ID: <01bd3e1d$b0c18c50$290056c7@chriss> Lines: 15 Date: Fri, 20 Feb 1998 16:41:11 GMT NNTP-Posting-Host: samba.dgii.com NNTP-Posting-Date: Fri, 20 Feb 1998 10:41:11 CST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Alfredo J. Cole wrote in article <01bd3e0c$200881c0$LocalHost AT alfredoc>... > #include > > float data[100] = { > 4997.01, 921.05, -1921.06, 4621.03, -605.20, You might try using double instead of float for a quick test. Otherwise, accounting seems like a perfect place to use fixed point (integer) math. -- Junk e-mail filter in use. Send e-mail for code.