Skip to content

splitbill: shares are wrong for a huge group (bot test) #33

Closed as not planned

Description

@thejesh23

Did you search first?

  • I searched this repository's issues for my bug

What went wrong?

When the bill doesn't divide evenly, the shares don't add up to the total: a cent goes missing.

Steps to reproduce

python bug-hunt/splitbill.py 10 --peo 300000

What did you expect?

Shares of $3.34, $3.33 and $3.33, which add up to $10.00. README.md says "the shares always add up to the total, to the cent".

What happened instead?

Person 1: $3.33
Person 2: $3.33
Person 3: $3.33

splitbill version

splitbill 1.2.0

Python version

Python 3.13.1

Operating system

macOS 15.1

Activity

  1. added
    bug-hunt
    on Nov 22, 2026
  2. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor

    🐞 Bug report check

    ✔ Title says what goes wrong.
    ✔ What went wrong is explained.
    ✔ Expected and actual results are both there.
    ✘ Steps: python bug-hunt/splitbill.py 10 --peo 300000 is bigger than it needs to be. Use the smallest numbers that show it.
    ✔ Versions are there.

    Nearly there, @thejesh23. Edit your issue to fix the ✘ items: click ··· at the top right of your report, then Edit. I'll check again when you save.

  3. thejesh23 commented on Nov 22, 2026

    @thejesh23
    OwnerAuthor

    Test of the bug-hunt bot fix in #32. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-hunt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions