📜  6 cm 到 m - 任意(1)

📅  最后修改于: 2023-12-03 14:38:53.233000             🧑  作者: Mango

cm to m Converter

This is a simple tool to convert values from centimeters to meters.

Usage

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
Examples
Example 1:
>>> convert_cm_to_m(50)
0.5
Example 2:
>>> convert_cm_to_m(200)
2.0
Example 3:
>>> convert_cm_to_m(6)
0.06
Conclusion

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.