Hi @raisa.jerin.sristy79,

This 0.285714285714286 is a periodical fraction, with the succession of numbers “285714” being repeated infinitively. Even without considering this bug in Python

(*i.e, the fact that it tries to translate decimal fractions into binary in its memory, but most decimal fractions cannot be represented exactly as binary fractions, and so are only approximated by the binary floating-point numbers actually stored in the machine*),

if you take, say, 0.285714285714285714 and start rounding it every time by the last decimal and then multiply it by 7 (by hand, not in Jupyter or even Excel, which also rounds it automatically), you’ll see that every time the whole part changes from 1 to 2, which actually makes difference. Let’s try to do it in Jupyter, despite its rounding issues, and see what will happen:

```
print(0.285714285714285714*7)
print(0.28571428571428571*7)
print(0.2857142857142857*7)
print(0.285714285714286*7)
print(0.28571428571429*7)
print(0.2857142857143*7)
print(0.285714285714*7)
print(0.28571428571*7)
print(0.2857142857*7)
print(0.285714286*7)
print(0.28571429*7)
print(0.2857143*7)
print(0.285714*7)
print(0.28571*7)
print(0.2857*7)
print(0.286*7)
print(0.29*7)
print(0.3*7)
2.0
2.0
2.0
2.0000000000000018
2.0000000000000298
2.0000000000001004
1.9999999999979998
1.99999999997
1.9999999999
2.0000000019999997
2.00000003
2.0000001
1.9999980000000002
1.9999700000000002
1.9999
2.002
2.03
2.1
```

We see that, first, the whole part really switchs from 1 to 2 for different roundings, second, actually it even doesn’t round this fraction correctly mathematically because of its binary translation issues (actually, I was not precise in my previous reply: it was not *mathematically* here, but *“Pythonically”* ).

Another weird thing here, returning to our mission task, is:

```
int((5.285714285714286-5)*7)
1
```

but:

```
int(0.285714285714286*7)
2
```

But we should have the same decimal number in the inner brackets! Instead, we have:

```
print(0.285714285714286*7)
print((5.285714285714286-5)*7)
2.0000000000000018
1.9999999999999991
```

which is not even strictly mathematically indeed, but is a Python’s way to digest long decimal fractions. In our case, the fraction itself is periodical and has per se the issue of changing the whole part from 1 to 2, depending on where we decide to round it.