2019-03-18 04:18:02 +00:00
|
|
|
# units
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 提供两个度量单位之间的转换。
|
2021-03-31 11:47:33 +01:00
|
|
|
> 更多信息: <https://www.gnu.org/software/units/>.
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 以交互模式运行:
|
2019-03-18 04:18:02 +00:00
|
|
|
|
|
|
|
`units`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示两个简单单位之间的转换:
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
`units {{quarts(夸脱)}} {{tablespoons(大汤匙)}}`
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 单位与数量之间的转换:
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
`units "{{15 pounds(磅)}}" {{kilograms(公斤)}}`
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示两个复合单位之间的转换:
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
`units "{{meters(米) / second(秒)}}" "{{inches(英尺) / hour(小时)}}"`
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示具有不同维度的单位之间的转换:
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
`units "{{acres(英亩)}}" "{{ft(英尺)^2(平方)}}"`
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示字节乘数的转换:
|
2019-03-18 04:18:02 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
`units "{{15 megabytes(兆字节)}}" {{bytes(字节)}}`
|