本文介绍了F#中的度量单位的分数幂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是真的吗: F#中没有小数功率单位
推荐答案
除了已经说过的以外,关于(不仅是)F#度量单位的信息的最佳资源是安德鲁·肯尼迪(Andrew Kennedy)的博士学位论文,他实际上设计了F#单元.他提到了分数单位:
In addition to what has already been said, the best resource for information about (not just) F# units of measure is Andrew Kennedy's PhD thesis, who actually designed F# units. He mentions fractional units:
我认为这实质上是F#没有分数单位的原因,因为F#设计非常接近Andrew Kennedy的工作,以确保它是合理的.
I think this is essentially the reason why F# does not have fractional units, because the F# design quite closely follows Andrew Kennedy's work to make sure it is sound.
更新:在F#4.0中,已实施
这篇关于F#中的度量单位的分数幂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!