Return float problem.

YunBin Lee li.yun.bin at gmail.com
Sat Nov 25 23:10:22 EST 2006


Hello john.
I solve it by add '#include "example.h"' into wrap.c, recompiled all
c-sources, and it works on the right way!

Content of example.h:
========== example.h =========
#ifndef __EXAMPLE_H__
#define __EXAMPLE_H__

double fact(double n);

#endif
========== end example.h =========

Anyway, Thanks for you answer again!

On 11月26日, 上午11时12分, "YunBin Lee" <li.yun.... at gmail.com>
wrote:
> John, Thanks for your help!
>
> > Did you notice that the garbage is a whole number? Why? Because you
> > have been (more or less) plucking ints out of some arbitrary place on
> > the stack, floating them, and printing them.I don't know how to solve it (or the right way), could you give me some
> examples?




More information about the Python-list mailing list