convert_force

将力量值从一个单位转换为另一个单位。

语法

convert_force(,,)

详细了解语法约定

参数

客户 类型​​ 必需 Description
value real 要转换的值。
from string 要从其进行转换的单元。 有关可能的值,请参阅转换单位
to string 要转换为其的单元。 有关可能的值,请参阅转换单位

转换单位

  • Decanewton
  • Dyn
  • KilogramForce
  • Kilonewton
  • KiloPond
  • KilopoundForce
  • Meganewton
  • Micronewton
  • Millinewton
  • Newton
  • OunceForce
  • Poundal
  • PoundForce
  • ShortTonForce
  • TonneForce

返回

返回从一种力量单位转换为另一种力量单位后的输入值。 无效的单位将返回 null

示例

print result = convert_force(1.2, 'Newton', 'Decanewton')

输出

result
0.12