hi, i've got a problem when using log10(...) or log(...) from math.h . e.g. log10(10) doesn't return 1 but something like 3.1... e+015. does anyone have an idea what could be the reason for this? thx j.w.
Hi Stefan, Very strange, I copied and pasted your code into a file and simulated it and it works fine for me. The line y=x; gets optimized out but x contains the value 1 and both printf's output 1.00000. -Walt