[New-bugs-announce] [issue45966] Error in Multiplication
Mukesh
report at bugs.python.org
Thu Dec 2 11:39:50 EST 2021
New submission from Mukesh <mikebon007 at gmail.com>:
I've tried various methods to multiply some numbers but every time I get an unsatisfying result when I try to evaluate 48*1.2 or 41*1.2 or 51*1.4 etc. For example if I run
import math
NUM3 = eval(input("Your Input: "))
print(NUM3)
Output:
Your Input: 51*1.4
71.39999999999999
Now it should give me a straight 71.4 but instead it's giving 71.39999999999999
It's not an issue with the version of python that I'm using cause I've already tried it on various versions.
----------
components: Interpreter Core
messages: 407537
nosy: M1kE
priority: normal
severity: normal
status: open
title: Error in Multiplication
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45966>
_______________________________________
More information about the New-bugs-announce
mailing list