长长转换器
转换公制单位和帝国单位之间的长度和距离。
输入结果时更新 。
关于此计算器
A length converter turns any distance measurement into another unit — millimeters, centimeters, meters and kilometers on the metric side, and inches, feet, yards and miles on the imperial side, plus the nautical mile and even the light-year for astronomical distances.
It works by converting your value to meters as a common base and then out to the unit you want, so any pair works in both directions. The key relationships are fixed by international definition: 1 inch = 2.54 cm exactly, 1 foot = 0.3048 m, 1 yard = 0.9144 m and 1 mile = 1,609.344 m.
Worked example: to convert 5 meters to feet, divide by 0.3048 (or multiply by 3.28084), giving about 16.4 feet. Going the other way, 100 feet is 100 × 0.3048 = 30.48 meters. Alongside the single conversion, a full table restates your distance in every unit from nanometers to light-years, so you never have to chain two conversions by hand.
经常问到的问题
几英尺是一米?
一米等于3.28084英尺。要走另一条路,一英尺正好是0.3048米,因为一英尺的定义是30.48厘米。
一英里里有多少公里?
一英里等于1.6093444公里,一公里约为0.621371英里。这里的英里是1 609.344米的国际法规。
什么是海里?
海洋和空中航行使用1 852米,长度为1分钟,比陆地(法定)英里长约15%。
英寸内有多少厘米?
There are exactly 2.54 centimeters in an inch, so a foot (12 inches) is 30.48 cm. To go from centimeters to inches, divide by 2.54.
我如何将水表转换成脚?
这条长转换器乘以3.28084米(或除以0.3048),5米约16.4英尺,2米约6.56英尺。
几码是一米?
一米大约1.09361码,一码正好0.9144米。两米很近,所以一个米和一个院子往往被松散地当作相似的长度。
什么是光年?
光年是一年中的距离光程,大约9.46万亿公里,是用来测量恒星之间巨大差距的距离单位,而不是时间单位。
API - 使用代码中的计算器
将此计算器称为自由 JSON 端点 。 不需要按键 。 将字段值发送到下面作为查询参数或 JSON 。 任何您省略的, 都会使用相同的默认值, 此页面预填的默认值是预填的; 未知参数是 400, 而不是静音零 。 读取 API 全部文件 →
终点
GET https://calculator.free/api/v1/length/
curl
curl "https://calculator.free/api/v1/length/?amount=1&from=m&to=ft"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/length/?" + new URLSearchParams({
"amount": "1",
"from": "m",
"to": "ft"
}));
const data = await r.json();
console.log(data.results);
成果仅是一般指导的估计数,而不是财务、医疗或税务咨询。