Hi John,

Thanks for that shaking :-)
You are right my problem is elsewhere in the program. I just assumed this was
the problem because
of everything I was reading about floating point problems. I think I have
learnt a lesson here.

I'll read the gdb manual to figure out how to step over and not step into.

killfile me it's for my own good.
cheers
AlanE



John Marshall wrote:

> On Thu, Jul 05, 2001 at 09:54:38PM -0700, Alan Evans wrote:
> > Can someone please give me an answer to why I can't get casting a float
> > to a double
> > to work.
>
> Perhaps you could tell us something about why you think it isn't working.
> Do you get the right answer?
>
> > When I do this:
> >
> > double doubleProb;
> > float floatProb;
> >
> > doubleProb = (double)floatProb;
> >
> > I get this:
> >
> > (gdb) step
> > 0x10027f60 in __extendsfdf2 (a1=0.00999999978) at fpgnulib.c:-1
> > -1 fpgnulib.c: No such file or directory.
> > (gdb)
>
> No.  That's what you get when you write that code and then single step
> it in the debugger.  What is the problem?
>
> If you are complaining that it can't find the source code of the support
> function it uses to do the conversion (fpgnulib.c), then I would suggest
> that you shouldn't be surprised, since that code is indeed not present in
> your project directory.  It's not part of the code of your project, after
> all.  Either supply the code if you really care, or don't single step
> down into it.
>
> If you were expecting it to say "a1=0.01" then I'll just killfile you
> now and be done with it.  :-)
>
>     John


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to