Python 3 gives wrong output when dividing two large numbers?

In Python 3.x / means floating point division and can give small rounding errors. Use // for integer division.

ans = a // (b*c)

Leave a Comment