Skip to content

Float number comparision problem #46347

Closed

Description

@tsxy
mannequin
BPO 2075
Nosy @amauryfa

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 2008-02-12.08:11:23.217>
created_at = <Date 2008-02-12.05:36:02.968>
labels = ['interpreter-core', 'invalid', 'type-bug', 'library']
title = 'Float number comparision problem'
updated_at = <Date 2008-02-12.08:11:23.085>
user = 'https://bugs.python.org/tsxy'

bugs.python.org fields:

activity = <Date 2008-02-12.08:11:23.085>
actor = 'amaury.forgeotdarc'
assignee = 'none'
closed = True
closed_date = <Date 2008-02-12.08:11:23.217>
closer = 'amaury.forgeotdarc'
components = ['Interpreter Core', 'Library (Lib)']
creation = <Date 2008-02-12.05:36:02.968>
creator = 'tsxy'
dependencies = []
files = []
hgrepos = []
issue_num = 2075
keywords = []
message_count = 3.0
messages = ['62306', '62307', '62308']
nosy_count = 2.0
nosy_names = ['amaury.forgeotdarc', 'tsxy']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue2075'
versions = ['Python 2.5']

Activity

  1. tsxy commented on Feb 12, 2008

    tsxymannequin
    MannequinAuthor
    c=22.99*5.0
    print c==114.95
    """This will produce false"""
    
    c=22.99*4.0
    print c==91.96
    """This will produce true"""

    """This is not expected behavior for python"""

  2. added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    stdlibStandard Library Python modules in the Lib/ directory
    type-bugAn unexpected behavior, bug, or error
    on Feb 12, 2008
  3. tsxy commented on Feb 12, 2008

    tsxymannequin
    MannequinAuthor

    The issue is reproduced under WIN32, version info as follows:
    Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
    (Intel)] on win32

  4. amauryfa commented on Feb 12, 2008

    @amauryfa
    Contributor
  5. transferred this issue fromon Apr 10, 2022
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

    interpreter-core(Objects, Python, Grammar, and Parser dirs)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