0

I try to debug a C++ program with Eclipse CDT debugger. But when I type a mathematical expression that contains a C math function such as cos or fabs in the Expressions window, I always obtain a wrong answer.

Edit: some examples: enter image description here

Any idea?

Greg82
  • 1,000
  • 3
  • 10
  • 24
  • 2
    tell us what you was trying to do? give us some code – nobalG Jul 21 '14 at 08:46
  • Some context, example input, code, or anything else would be helpful. The only thing I can think of from this is - your expression evaluates to `1`?.! – ChiefTwoPencils Jul 21 '14 at 08:48
  • This question has severe formatting or content problems. This question is unlikely to be salvageable through editing, and might need to be removed. – AStopher Jul 21 '14 at 08:51
  • @zyboxinternational it is definitely likely to be improved via editing. – UmNyobe Jul 21 '14 at 08:52
  • I don't understand your problem: my question is, however, clear: I just want to know why eclipse tells me that "fabs(-15) = 0" and not 15, and why "cos(3) = 1"... – Greg82 Jul 21 '14 at 08:53
  • @greg82 Are you sure the CDT debugger can **run** C code? because that is what you are asking him to do. – UmNyobe Jul 21 '14 at 08:54
  • @UmNyobe Mmmh, I see, you're probably right. My old Java habits, probably... Thanks – Greg82 Jul 21 '14 at 08:57

0 Answers0