A little more: decimal_portion

Chris Angelico rosuav at gmail.com
Sat Oct 4 11:24:40 EDT 2014


On Sun, Oct 5, 2014 at 1:16 AM, Seymore4Head
<Seymore4Head at hotmail.invalid> wrote:
> I did.  I included a screenshot of me doing just that.
> The formula seems to work in the shell, but does not work as a
> function, or I am missing something subtle again.

Ah, I don't generally click screenshots.

Have the function print out exactly what it's doing at each step. See
how that compares to your hand-worked version. You'll see the problem.

ChrisA



More information about the Python-list mailing list