Skip to content

Decimal Multiplication problems: Wrong solution #79104

Closed

Description

@ShadowRaven
BPO 34923
Nosy @tirkarthi

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 2018-10-07.17:06:31.473>
created_at = <Date 2018-10-07.16:53:51.004>
labels = ['3.7', 'invalid']
title = 'Decimal Multiplication problems: Wrong solution'
updated_at = <Date 2018-10-07.17:42:52.788>
user = 'https://bugs.python.org/ShadowRaven'

bugs.python.org fields:

activity = <Date 2018-10-07.17:42:52.788>
actor = 'mark.dickinson'
assignee = 'none'
closed = True
closed_date = <Date 2018-10-07.17:06:31.473>
closer = 'Shadow Raven'
components = []
creation = <Date 2018-10-07.16:53:51.004>
creator = 'Shadow Raven'
dependencies = []
files = []
hgrepos = []
issue_num = 34923
keywords = []
message_count = 3.0
messages = ['327290', '327292', '327293']
nosy_count = 2.0
nosy_names = ['xtreak', 'Shadow Raven']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue34923'
versions = ['Python 3.7']

Activity

  1. ShadowRaven commented on Oct 7, 2018

    ShadowRavenmannequin
    MannequinAuthor

    Some decimals, when multiplied with others, give wrong solutions:

    6.23*5 = 31.150000000000002
    6.89*5 = 34.449999999999996

    There are more but I can't list all.

  2. tirkarthi commented on Oct 7, 2018

    @tirkarthi
    Member

    Thanks for the report. I think this a known limitation and not a bug. Please read more about floating point limitation at https://docs.python.org/3/tutorial/floatingpoint.html . I would propose closing this. Similar issue reported few days back : bpo-34907

  3. ShadowRaven commented on Oct 7, 2018

    ShadowRavenmannequin
    MannequinAuthor

    Oh okay thanks

  4. 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

    3.7 (EOL)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions