📅  最后修改于: 2023-12-03 14:38:53.233000             🧑  作者: Mango
This is a simple tool to convert values from centimeters to meters.
To use the converter, simply pass the value you want to convert as an argument to the convert_cm_to_m
function. The function will return the converted value in meters.
def convert_cm_to_m(cm: float) -> float:
"""
This function converts centimeters to meters
:param cm: float - the value in centimeters
:return: float - the converted value in meters
"""
return cm / 100
>>> convert_cm_to_m(50)
0.5
>>> convert_cm_to_m(200)
2.0
>>> convert_cm_to_m(6)
0.06
This simple convert_cm_to_m
function can be used to easily convert values from centimeters to meters. It can be integrated into other programs or scripts to perform more complex calculations based on length or distance measurements.