Andrew Kennedy: F# Units of Measure
Charles
Sep 22, 2009 at 2:00 PM
Charles
(3)
Floating point values in F# can have associated
units of measure, which are typically used to indicate length, volume, mass, and so on. The built-in type float takes an optional unit-of-measure parameter, written in angle brackets, in a similar way that types such as IEnumerable take a
type…