This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Quick question about "print EXPR"
- From: Peter Barada <peter at the-baradas dot com>
- To: brian at desany dot com
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 22 Dec 2004 15:40:00 -0500 (EST)
- Subject: Re: Quick question about "print EXPR"
- References: <20041222202544.64087.qmail@web51002.mail.yahoo.com>
>Why is it that no matter what argument I pass to "print floor(234.567)", I always get an answer of
>"1"?
Did you include <math.h> in your program? If not you don't have a
prototype for floor that indicates it takes a double and returns a
double...
--
Peter Barada
peter@the-baradas.com