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

result error for 2/5 and 4/5 #47426

Closed
hiweed mannequin opened this issue Jun 23, 2008 · 2 comments
Closed

result error for 2/5 and 4/5 #47426

hiweed mannequin opened this issue Jun 23, 2008 · 2 comments
Labels
OS-windows topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@hiweed
Copy link
Mannequin

hiweed mannequin commented Jun 23, 2008

BPO 3176
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-06-23.11:02:08.595>
created_at = <Date 2008-06-23.10:57:34.738>
labels = ['expert-IDLE', 'invalid', 'OS-windows', 'type-crash']
title = 'result error for 2/5 and 4/5'
updated_at = <Date 2008-06-23.11:02:08.149>
user = 'https://bugs.python.org/hiweed'

bugs.python.org fields:

activity = <Date 2008-06-23.11:02:08.149>
actor = 'amaury.forgeotdarc'
assignee = 'none'
closed = True
closed_date = <Date 2008-06-23.11:02:08.595>
closer = 'amaury.forgeotdarc'
components = ['IDLE', 'Windows']
creation = <Date 2008-06-23.10:57:34.738>
creator = 'hiweed'
dependencies = []
files = []
hgrepos = []
issue_num = 3176
keywords = []
message_count = 2.0
messages = ['68620', '68621']
nosy_count = 2.0
nosy_names = ['amaury.forgeotdarc', 'hiweed']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue3176'
versions = ['Python 3.0']

@hiweed
Copy link
Mannequin Author

hiweed mannequin commented Jun 23, 2008

On IDLE 3.0b1 (Windows XP SP3):

  • type 2/5 you'll get 0.40000000000000002 instead of 0.4
  • type 4/5 you'll get 0.80000000000000004 instead of 0.8

@hiweed hiweed mannequin added topic-IDLE OS-windows type-crash A hard crash of the interpreter, possibly with a core dump labels Jun 23, 2008
@amauryfa
Copy link
Member

This is normal, and due to the floating point representation of numbers.
Please see
http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate

@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
OS-windows topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

1 participant