Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78694

Re: A little more: decimal_portion

References <2p203aldkhli65bd9crd4ljbfuab0u90oc@4ax.com> <mailman.14599.1412435262.18130.python-list@python.org> <7j303a9e0g7ipe7se3s5qc364nurjrcknp@4ax.com>
Date 2014-10-05 01:24 +1000
Subject Re: A little more: decimal_portion
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.14600.1412436289.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Oct 5, 2014 at 1:16 AM, Seymore4Head
<Seymore4Head@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

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

A little more: decimal_portion Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-04 10:58 -0400
  Re: A little more: decimal_portion Chris Angelico <rosuav@gmail.com> - 2014-10-05 01:07 +1000
    Re: A little more: decimal_portion Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-04 11:16 -0400
      Re: A little more: decimal_portion Chris Angelico <rosuav@gmail.com> - 2014-10-05 01:24 +1000
        Re: A little more: decimal_portion Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-04 11:38 -0400
  Re: A little more: decimal_portion Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-05 01:46 +1000
    Re: A little more: decimal_portion Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-04 12:11 -0400
      Re: A little more: decimal_portion wxjmfauth@gmail.com - 2014-10-05 00:14 -0700

csiph-web