gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

print (call) a double function


From: Gene Smith
Subject: print (call) a double function
Date: Mon, 11 May 2009 15:44:37 -0400
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

In gdb when I "print /f pow(test, 2.2)" which should return a double I don't see the the correct answer. The actual code does return the right answer. Sometimes I see an integer result, other times an incorrect float. There does not seem to be a way for gdb to format a result as a "double", e.g., /d (which is decimal I think).

I see the same thing in insight when I select "pow(test, 2.2)" with the mouse and allow it to pop-up a value.

Is this a bug or am I just confused?

-gene





reply via email to

[Prev in Thread] Current Thread [Next in Thread]