Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Help! Where has Math.PI gone in F# CTP?

Tags:

math

f#

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.

like image 722
Benjol Avatar asked Sep 19 '25 18:09

Benjol


1 Answers

The constant pi is System.Math.PI, if you want to use, Math.PI just open System, in your fsharp file:

open System
Math.PI

Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!