.NET单位类,英寸到毫米单位、NET

2023-09-03 05:17:46 作者:吃得苦中苦、方能开路虎

.NET是否有单位换算类?我需要英寸转换为毫米,反之亦然。

Does .NET has Units conversion class? I need to convert inches to millimeters and vise versa.

推荐答案

没有有什么样的内置。但是你可以简单地通过25.4乘以或除以。

No there is nothing like that built-in. But you can simply multiply or divide by 25.4.