Hi add, What we have here is "GIGO". Garbage in, garbage out. Try this instead: - - - - - - - - - - - - - - - - double foo( double i ) { return i; } int main() { double i=1.0; foo(i); return 0; } - - - - - - - - - - - - - - - - Note all the differences, there are quite a few. Order is important. Details are important. HTH, --Eljay