tags:

views:

438

answers:

4

I'm just trying to do simple scripting with F#, and Math.PI seems to have 'disappeared'. I've referenced FSharp.PowerPack.dll, but still can't find it.

A: 

I'm not sure and can't test it now but have a look at Microsoft.FSharp.Math.

milan1612
A: 

You know, you could just do this:

let PI = 3.141592653589
nickf
Pending an answer I have, but it's a bit of a bummer to have to do that everywhere.
Benjol
+3  A: 

System.Math.PI

I hope this IS the right answer...
Benjol
In my 1.9.6.2 CTP release it works.
A: 

I concur with Kalle ... System.Math.PI works on my F# CTP interactive window.

mspan