Skip to content

Result not expected on simple math operation #123850

@quique05

Description

@quique05

Bug report

Bug description:

# Add a code block here, if required
14*0.02+2

Tested on python 3.12.0 and 3.12.6.
Type 140.02+2 and get 2.2800000000000002
Type 14
0.01+2 and get 2.14
Type 14*0.03+2 and get 2.42

CPython versions tested on:

3.12

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions