面积换算
在平方米、平方英尺、英亩、公顷等之间换算。
面积转换器在平方米、平方千米、平方英尺、平方英里、英亩、公顷和其他常用单位之间转换面积测量值。面积转换在房地产、农业、城市规划、土地测量和科学研究中经常需要。
在任意单位字段中输入值,其他所有单位自动更新。在比较不同地区的房产大小时特别有用——例如,将英亩(美国和英国常用)转换为平方米或公顷(欧洲和国际场景常用)。
1英亩约等于4047平方米或0.4047公顷,1公顷等于10000平方米或2.471英亩。在阅读国际房产列表、解读农业数据或理解地理面积统计数据时,这些转换非常重要。
常见问题
代码实现
# Area conversion functions
def m2_to_ft2(m2: float) -> float:
"""Square meters to square feet"""
return m2 * 10.7639
def ft2_to_m2(ft2: float) -> float:
"""Square feet to square meters"""
return ft2 / 10.7639
def hectare_to_acre(ha: float) -> float:
"""Hectares to acres (1 ha = 2.47105 acres)"""
return ha * 2.47105
def acre_to_hectare(acres: float) -> float:
return acres / 2.47105
def m2_to_hectare(m2: float) -> float:
return m2 / 10_000
def km2_to_m2(km2: float) -> float:
return km2 * 1_000_000
def pyeong_to_m2(pyeong: float) -> float:
"""Korean pyeong (평) to square meters"""
return pyeong * 3.30579
def m2_to_pyeong(m2: float) -> float:
return m2 / 3.30579
# Examples
print(m2_to_ft2(100)) # 1076.39 sq ft
print(hectare_to_acre(1)) # 2.47105 acres
print(pyeong_to_m2(25)) # 82.64 m² (typical Korean apartment)Comments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.