Units of Measure in F#: Part Three, Generic Units

In the first two articles in this series, we saw how to declare base and derived units, introduce constants with units, define our own conversion functions, and have F# check the units for us. But what if we’re writing code that doesn’t care what units it is working in? That’s the subject of today’s article….

10

Units of Measure in F#: Part Two, Unit Conversions

In today’s article I’ll show you how to use different systems of units, convert between units, and interface with non-unit-aware code. PowerPack goodies First, though, let’s have a look at some handy definitions provided in the F# PowerPack. To access this DLL, you’ll need to reference if from your project. If you’re working in Visual…

21