CodePlexProject Hosting for Open Source Software
convert units of measure and LanguagePrimitives
[<Measure>]type litre[<Measure>]type pintlet MeasureSample3() = let l:float = LanguagePrimitives.FloatWithMeasure 10. let ratio = 1.0 / 1.76056338 let pints = l / ratio printfn "%A pints = %A liter" pints l
17.6056338 pints = 10.0 liter
Last edited Sep 14, 2011 at 3:16 AM by ttliu2000, version 1
There is no recommended release for this project.