python floating number
Posted
by zhack
on Stack Overflow
See other posts from Stack Overflow
or by zhack
Published on 2010-06-06T22:22:33Z
Indexed on
2010/06/06
22:32 UTC
Read the original article
Hit count: 88
python
i am kind of confused why python add some additional decimal number in this case, please help to explain
>>> mylist = ["list item 1", 2, 3.14]
>>> print mylist ['list item 1', 2, 3.1400000000000001]
© Stack Overflow or respective owner