如何用單位打印出數字?我應該使用「%A」還是應該先剝離單元? MSDN沒有說什麼:http://msdn.microsoft.com/en-us/library/vstudio/ee370560.aspxF#中的單位是數字(值)的格式佔位符是什麼?
[<Measure>] type hr
let a = 10<hr>
printf "%d" a // <-- doesn't compile: Unit of measure 'hr' doesn't match the unit of measure '1'
可能重複[如何在F#中使用度量單位打印生成的單位?](http://stackoverflow.com/questions/4359767/how-do-you-print-the-resulting-units-using -un-of-measure-in-f) –
我不同意這是重複的。另一個問題是如何打印出計量單位的實際單位部分。這是關於讓任何東西打印出來。 –