www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/12/12:49:39

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3786
Path: news-dnh.mv.net!mv!news.sprintlink.net!datalytics!news.ahc.ameritech.com!ddsw1!news.mcs.net!bug.rahul.net!a2i!genmagic!goonsquad.spies.com!uuwest!alcyone!max
From: max AT alcyone DOT darkside DOT com (Erik Max Francis)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: header file <math.h>
Date: Mon, 11 Dec 95 07:43:52 PST
References: <DJA3HA DOT H75 AT jade DOT mv DOT net>
Organization: &tSftDotIotE
Lines: 14
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Andy Molyneux <molyneua AT cs DOT man DOT ac DOT uk> 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.


Erik Max Francis, &tSftDotIotE && uuwest!alcyone!max, max AT alcyone DOT darkside DOT com
San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
_Omnia quia sunt, lumina sunt._ && GIGO Omega Psi && http://www.spies.com/max/
"The Creator Raven looked at Man and was . . . surprised to find that this
strange new being was so much like himself."           -- Eskimo creation myth

- Raw text -


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