Here's some code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 

[<Measure>]
type Distance

let dist =
    printfn "Enter distance"
    let s = System.Console.ReadLine()
    let f = float s
    LanguagePrimitives.FloatWithMeasure<Distance> f

let totalDist = dist + 1.0<Distance>
printfn "%A" totalDist    

By on 2/11/2010 8:19 AM ()

Many thanks.

By on 2/11/2010 6:10 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