Issue 25975: Weird multiplication - Python tracker (original) (raw)

Issue25975

Created on 2015-12-29 14:07 by LCK, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg257187 - (view) Author: Alex (LCK) Date: 2015-12-29 14:07
Hi! I'm nube and just learning, but found weird thing 50000 * 1.1 equals 55000.00000000001, but that's not wright. I'm using 3.5.1 Shell. My friend checked - his got the same result. So is it a bug or a feature?
msg257188 - (view) Author: Jacek KoƂodziej (Unit03) * Date: 2015-12-29 14:10
LCK: it's a trait of float point arithmetic in computing: https://docs.python.org/3.5/tutorial/floatingpoint.html . It's not a bug.
msg257192 - (view) Author: Alex (LCK) Date: 2015-12-29 14:59
Wow. Thanks!
History
Date User Action Args
2022-04-11 14:58:25 admin set github: 70163
2015-12-29 14:59:17 LCK set messages: +
2015-12-29 14:11:43 skrah set status: open -> closedresolution: not a bugstage: resolved
2015-12-29 14:10:50 Unit03 set nosy: + Unit03messages: +
2015-12-29 14:07:58 LCK create