Message392919
y = int(1.999999999999999) # fifteen decimal points
print(y)
1 # output is 1
y = int(1.9999999999999999) # sixteen decimal points
print(y)
2 # output is 2
It shows 1 when we type fifteen decimal whereas when we add sixteen decimal points the output becomes 2. |
|
Date |
User |
Action |
Args |
2021-05-04 16:58:33 | hbutt4319 | set | recipients:
+ hbutt4319, paul.moore, tim.golden, zach.ware, steve.dower |
2021-05-04 16:58:33 | hbutt4319 | set | messageid: <1620147513.11.0.38970557678.issue44034@roundup.psfhosted.org> |
2021-05-04 16:58:33 | hbutt4319 | link | issue44034 messages |
2021-05-04 16:58:33 | hbutt4319 | create | |
|