Skip to content

Poor accuracy in true division of integers #474

@skirpichev

Description

@skirpichev

For example:

>>> x, y = 15649, 2024092432744435552
>>> x/y
7.73136628883186e-15
>>> import mpmath
>>> float(mpmath.mpf(x)/mpmath.mpf(y))  # as in CPython
7.731366288831862e-15

The result expected to be correctly rounded with the round-half-to-even rule.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions