Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!werg8009 From: werg8009@uxa.cso.uiuc.edu Newsgroups: comp.lang.c Subject: Re: Paramters of type float getting cor Message-ID: <47600016@uxa.cso.uiuc.edu> Date: 1 Nov 90 17:32:00 GMT References: <6947@castle.ed.ac.uk> Lines: 15 Nf-ID: #R:castle.ed.ac.uk:6947:uxa.cso.uiuc.edu:47600016:000:421 Nf-From: uxa.cso.uiuc.edu!werg8009 Nov 1 11:32:00 1990 I ran into this problem a little while ago too. The reason you're number is corrupted is that when you pass a float as an argument it gets converted to a double before it gets put on the stack. Therefore there are two solutions: 1. Change the defintion of the arguments in the receiving function to be doubles. 2. Pass around pointers to floats instead of actual floats. Bill Reynen (werg8009@uxa.cso.uiuc.edu)