Just in case this informations is useful…
I am using this function to get the significance and I found out that after about a value of 5.47955939024333727e+00 for sigma it starts returning 0’s.
I am going to use the Erfc to scan over sigma values, and match until match them with the p-value I have.