www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/13/02:39:10

Date: Tue, 13 Aug 1996 09:34:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jeff Vogel <jhvogel AT me DOT umn DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: math addition error?
In-Reply-To: <jhvogel.839880522@me.umn.edu>
Message-Id: <Pine.SUN.3.91.960813093235.28748U-100000@is>
Mime-Version: 1.0

On 12 Aug 1996, Jeff Vogel wrote:

> #include <stdio.h>
> main()
> {
> double x=3.6053320875, y=3.6053320870;
> printf( "%lf\n", x-y );
           ^^^
What happens if you put "%f" there?  You shouldn't have to use "%lf" in 
printf calls; it is only required for scanf.

If that doesn't help, seems like an emulator problem to me, since it 
works on a Pentium (that has a built-in FPU).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019