Hi All,

I'm trying to implement the NORMSDIST function of MS excel in the C#. I found its implementation from the following link.

http://office.microsoft.com/en-us/excel/HP052091941033.aspx

and I've written the following code for this i.e.

```
static double NORMSDIST(double z_score)
{
double z_ = - ( (z_score * z_score) / 2 );
double normDist = (1 / ((Math.Sqrt(2 * Math.PI)))) * ( Math.Exp(z_) );
return normDist;
}
```

unfortunately this isn't giving me the correct result, can someone point out for me what m i missing in here?

thanks in advance.