Calculating pow(double,2) gives a huge number : I'm trying to code a simulation of Pi calculating using multiple processes.
I have a function that generates random double x, y numbers from 1 to -1,
and when im trying to calculate whether x^2 + y^2 <= 1,
but the result is a huge number, and its always bigger than 1.