Skip to content

decimal.Decimal greater than/less than sometimes gives wrong answers when comparing to floats. #51572

@adamtj

Description

@adamtj
mannequin
BPO 7323
Nosy @mdickinson
Superseder
  • bpo-2531: float compared to decimal is silently incorrect.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2009-11-14.22:20:49.225>
    created_at = <Date 2009-11-14.18:39:19.397>
    labels = ['type-bug', 'library']
    title = 'decimal.Decimal greater than/less than sometimes gives wrong answers when comparing to floats.'
    updated_at = <Date 2009-11-14.22:39:16.972>
    user = 'https://bugs.python.org/adamtj'

    bugs.python.org fields:

    activity = <Date 2009-11-14.22:39:16.972>
    actor = 'mark.dickinson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-11-14.22:20:49.225>
    closer = 'mark.dickinson'
    components = ['Library (Lib)']
    creation = <Date 2009-11-14.18:39:19.397>
    creator = 'adamtj'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 7323
    keywords = []
    message_count = 3.0
    messages = ['95248', '95262', '95264']
    nosy_count = 2.0
    nosy_names = ['mark.dickinson', 'adamtj']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '2531'
    type = 'behavior'
    url = 'https://bugs.python.org/issue7323'
    versions = ['Python 2.6', 'Python 2.5', 'Python 2.4']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions