Date: Tue, 12 Dec 1995 19:17:51 +0200 (IST) From: Eli Zaretskii To: Erik Max Francis Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: header file On Mon, 11 Dec 1995, Erik Max Francis wrote: > Andy Molyneux writes: > > > You're also using the wrong format character to printf; it should be "%f" > > not "%d" ("%d" is for ints, whereas "sin" returns a double) > > Technically, a double should be formatted as an %lf. Wrong. %lf only applies to scanf(); printf() converts all floats to doubles anyway, according to ANSI C, so %f is the way to go.