Re: Return float problem.

2006-11-25 Thread YunBin Lee
.h = Anyway, Thanks for you answer again! On 11月26日, 上午11时12分, "YunBin Lee" <[EMAIL PROTECTED]> 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 o

Re: Return float problem.

2006-11-25 Thread YunBin Lee
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

Return float problem.

2006-11-25 Thread YunBin Lee
Hi, all. I have a problem of float return error in python c binding module. Below is my c sources, compile commands and result of program. == wrap.c = #include PyObject *wrap_fact(PyObject *self, PyObject *args) { double n=0.0,result=0.0; if (!PyArg_ParseTuple (args,"d:fact",