+ 1
C# '%' doesn't work correctly for huge numbers
If we do: Math.Pow(3701, 37) % 10379 we will recieve the wrong answer. The correct one is 7770. Can anyone explain the situation to me?
3 ответов
0
Was the wrong answer 6273?
0
I thought it would be caused by the maximum integer size limit.
0
We use double for pow