Issue 3176: result error for 2/5 and 4/5 (original) (raw)
Issue3176
Created on 2008-06-23 10:57 by hiweed, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg68620 - (view) | Author: Hiweed (hiweed) | Date: 2008-06-23 10:57 |
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 | ||
msg68621 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * ![]() |
Date: 2008-06-23 11:02 |
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 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:35 | admin | set | github: 47426 |
2008-06-23 11:02:08 | amaury.forgeotdarc | set | status: open -> closedresolution: not a bugmessages: + nosy: + amaury.forgeotdarc |
2008-06-23 10:57:35 | hiweed | create |