Passing floats - Is this a bug?

Dave Tristram dat at ORVILLE.NAS.NASA.GOV
Fri Oct 6 10:01:45 AEST 1989


  > Here is the output this program compiled and run on a 4D/120GTX with 3.1G
  > 
  > foo:  1.000000
  > bar:  1.875000
  > 
  > 

try declaring the parameters as doubles.  I've had problems using the 
ansi style declarations like

   foo( float )

has something to do with automatic promotion of arguments, etc...



More information about the Comp.sys.sgi mailing list