. Advertisement .
..3..
. Advertisement .
..4..
I still get the ‘runtimewarning: overflow encountered in double_scalars’ error when running my program.
runtimewarning: overflow encountered in double_scalars
I have tried solution for this issue but its not work.
Can you help me?
The cause: This error usually comes up because the data type you’re using can’t handle the size of number you’re trying to manipulate. For example, the largest number you can manipulate with int32 is 2147483647.
Solution: Depending on the size of numbers you’re dealing with, setting the data type to int64 or float64 might solve the problem.
E.g.: