编辑与换算方法论
我们如何选单位、如何计算,以及有什么限制。
单位选择
unitbox 的每个单位来自两个来源:(1) SI(国际单位制)及其定义前缀;(2) 日常生活中常用的非 SI 单位(美制 / 英制加仑、海里、BTU 等)。我们刻意排除已无人换算的冷门历史单位。
换算因子
长度、质量、面积、体积、速度、时间、数据、能量、压力、角度——线性缩放,因子取自 NIST 与 BIPM。温度是仿射(含 offset),因为零点会位移。油耗是互逆——L/100km 越小越省油。
精度
默认 6 位有效数字。十进制 / 二进制前缀区分(KB = 1000 bytes、KiB = 1024 bytes)依 IEC 80000-13。保留美制 / 英制加仑差异。
编辑政策
文章以「清晰」优先于「行话」。每个换算页都由实时换算器使用的同一张数据表生成——不存在会与换算器不同步的复制粘贴因子表。
更新
本网站开源。每次变更皆可在 github.com/longmao/unitbox 公开 commit 记录看到。
Frequently Asked Questions
Where do your conversion factors come from?
NIST Special Publication 811 (SI factors), BIPM SI Brochure, and IEC 80000-13 for data prefixes. Each unit page links to its category reference.
How do you handle KB vs KiB (decimal vs binary)?
We use KB = 1000 bytes (decimal) and KiB = 1024 bytes (binary) per IEC 80000-13. We never silently round-trip between the two.
Why are temperatures affine (not linear)?
Because 0 °C is not the same point as 0 °F or 0 K. We apply the offset (0 °C = 273.15 K, 0 °C = 32 °F) before scaling.
Why is fuel-economy shown as "reciprocal"?
L/100km and MPG-US measure efficiency in opposite directions — smaller L/100km = better, larger MPG = better. We invert one before computing.