Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você pode tentar alterar os diretórios.
将卷值从一个单位转换为另一个单位。
语法
convert_volume(值从,到,)
详细了解语法约定。
参数
| 客户 | 类型 | 必需 | DESCRIPTION |
|---|---|---|---|
| 价值 | real |
✔️ | 要转换的值。 |
| 起始 | string |
✔️ | 要从其进行转换的单元。 有关可能的值,请参阅转换单位。 |
| 自 | string |
✔️ | 要转换为其的单元。 有关可能的值,请参阅转换单位。 |
转换单位
- AcreFoot
- AuTablespoon
- BoardFoot
- 厘升
- CubicCentimeter
- CubicDecimeter
- CubicFoot
- CubicHectometer
- CubicInch
- CubicKilometer
- CubicMeter
- CubicMicrometer
- CubicMile
- CubicMillimeter
- CubicYard
- 竍
- DecausGallon
- 竕
- DeciusGallon
- HectocubicFoot
- HectocubicMeter
- 竡
- HectousGallon
- ImperialBeerBarrel
- ImperialGallon
- ImperialOunce
- ImperialPint
- KilocubicFoot
- KilocubicMeter
- KiloimperialGallon
- 竏
- KilousGallon
- 升
- MegacubicFoot
- MegaimperialGallon
- Megaliter
- MegausGallon
- MetricCup
- MetricTeaspoon
- Microliter
- 毫升
- OilBarrel
- UkTablespoon
- UsBeerBarrel
- UsCustomaryCup
- UsGallon
- UsLegalCup
- UsOunce
- UsPint
- UsQuart
- UsTablespoon
- UsTeaspoon
返回
返回从一种容量单位转换为另一种容量单位后的输入值。 无效的单位将返回 null。
例子
下面的示例演示如何使用该 convert_volume() 函数。
print result = convert_volume(1.2, 'CubicMeter', 'AcreFoot')
输出
| 结果 |
|---|
| 0.0009728568 |