homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Mishandling of large numbers
Type: Stage: resolved
Components: Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Practicing.Zazen, pitrou, r.david.murray
Priority: normal Keywords:

Created on 2012年03月22日 15:37 by Practicing.Zazen, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (3)
msg156576 - (view) Author: Practicing Zazen (Practicing.Zazen) Date: 2012年03月22日 15:37
Please let me know if this is accepted behavior or not.
>>> 99999*99999999999
9999899999900001
>>> 99999*99999999999+0.1
9999899999900000.0
>>> 99999*99999999999+1
9999899999900002
msg156579 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012年03月22日 15:50
See http://docs.python.org/dev/faq/design.html#why-are-floating-point-calculations-so-inaccurate 
msg156585 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012年03月22日 16:10
You might want to take a look at the Decimal module.
History
Date User Action Args
2022年04月11日 14:57:28adminsetgithub: 58597
2012年03月22日 16:10:07r.david.murraysetnosy: + r.david.murray
messages: + msg156585
2012年03月22日 16:08:59r.david.murraysetstatus: open -> closed
resolution: not a bug
stage: resolved
2012年03月22日 15:50:40pitrousetnosy: + pitrou
messages: + msg156579
2012年03月22日 15:37:16Practicing.Zazencreate

AltStyle によって変換されたページ (->オリジナル) /