New submission from Mukesh <mikebon...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue45966> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com