如果我的问题正确,将其转换为"纯"浮动会移除单位.例如:
[] type m [] type km let removeUnit (x:float<_>) = float x let foo = removeUnit 2.6 let foo2 = removeUnit 2.1
val removeUnit:float <'u> - > float