Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!rphroy!caen!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!noose.ecn.purdue.edu!gn.ecn.purdue.edu!jess From: jess@gn.ecn.purdue.edu (Jess M Holle) Newsgroups: comp.sys.mac.programmer Subject: Re: complex.h in MPW 3.1 Message-ID: <1991Jun9.220209.2749@gn.ecn.purdue.edu> Date: 9 Jun 91 22:02:09 GMT Sender: jess@gn.ecn.purdue.edu (Jess M Holle) Organization: Purdue University Engineering Computer Network Lines: 16 Well, I just found that the error was not in the complex library, but rather in my own code. I apologize for claiming the error to be in the complex number routines, after having only checked my own code a few time (should have been a few dozen, I guess). Anyway, the program (all dozen lines of it) is now giving perfect results. The error in question was: printf("%.*LG %.*LG\n",n,g.re,g.im); Note that there should have been another n inserted between g.re and g.im. Thanks to those that attempted to help me with this problem. I'll be more careful with the "%.*" format in the future. Jess Holle