Date: Tue, 1 Aug 2000 09:10:32 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Radical NetSurfer cc: djgpp AT delorie DOT com Subject: Re: modf BROKEN ?? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 31 Jul 2000, Radical NetSurfer wrote: > Why does the following program INCORRECTLY display > the fractional part? Please make a point of showing the faulty output, and please tell exactly which part of it you think is incorrect, and why. These things are very hard to guess. If your problem is with the output printed for the 11th line, where it says "Value: 1.000000", then the reason is that adding 0.1 10 times doesn't yield 1.0 (0.1 doesn't have an exact binary representation). Try assigning 1.0 to v directly, and see the difference.