Mail Archives: djgpp/1998/02/20/11:50:17
From: | "Chris Schumann" <chrisxs AT dgii DOT nospam DOT com>
|
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
|
Alfredo J. Cole <ajc AT acyc DOT com> wrote in article
<01bd3e0c$200881c0$LocalHost AT alfredoc>...
> #include <stdio.h>
>
> 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.
- Raw text -