F#Units of Measure

Remarks

Units at Runtime

Units of Measure are used only for static checking by the compiler, and are not available at runtime. They cannot be used in reflection or in methods like ToString.

For example, C# gives a double with no units for a field of type float<m> defined by and exposed from an F# library.

Related Examples

Conversions between units