mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-05-09 08:25:44 +02:00
[GH-ISSUE #218] Python division not exact #84
Labels
No labels
bug
duplicate
easy
enhancement
enhancement
fixed
fixed
good first issue
hard
invalid
pull-request
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Upsilon#84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Golem642 on GitHub (May 5, 2022).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/218
Describe the bug
Sometimes when dividing a number in Python that gives an integer result, it display it followed by a lot of zeros and a 1
To Reproduce
Steps to reproduce the behavior:
132/2Expected behavior
The divided number should have a lot of zeros followed by a 1 at the end, this only apply to some divisions. Another working example is
51/1Device
@Yaya-Cout commented on GitHub (May 5, 2022):
I think it's a precision bug.
@Lauryy06 commented on GitHub (May 5, 2022):
Yes, it's the imprecision of floating point numbers, a problem that affects computers since the beginning of computing and that we can't fix.