System.Math.Round is a .Net call that takes a single argument that is the tuple (num,nDdigitsToRound) -- not a let-bound fn that can be curried. (The fact that the arg order is wrong here is another matter.)

You could do:

let y = (angle * i) |> sin |> (fun n -> System.Math.Round(n, 4))

but in this case

Math.Round(Math.Sin(angle * i), 4)

Seems much more canonically "mathy" anyway...

By on 6/22/2009 2:03 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper