Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Float number comparision problem #46347

Closed
tsxy mannequin opened this issue Feb 12, 2008 · 3 comments
Closed

Float number comparision problem #46347

tsxy mannequin opened this issue Feb 12, 2008 · 3 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@tsxy
Copy link
Mannequin

tsxy mannequin commented Feb 12, 2008

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']

@tsxy
Copy link
Mannequin Author

tsxy mannequin commented Feb 12, 2008

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"""

@tsxy tsxy mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Feb 12, 2008
@tsxy
Copy link
Mannequin Author

tsxy mannequin commented Feb 12, 2008

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

@amauryfa
Copy link
Member

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant