Ratio Calculator|比例计算器

比例计算器 | Ratio Calculator

比例计算器 Ratio Calculator

比例化简、等比放大/缩小、按目标值求等比另一项。支持小数输入与批量解析(如 16:9、3/2、1.5:2)。
Simplify ratios, scale proportionally, and solve equivalent values. Supports decimals and batch parsing (e.g., 16:9, 3/2, 1.5:2).

1. 输入参数 · Ratio Inputs
:
也可以在下方“批量解析”里粘贴多行比例,工具会逐行解析并输出简化结果。
You can also paste multiple ratios in “Batch Parse” below; the tool will parse line by line and output simplified results.
比例是什么? A:B 表示 A 与 B 的相对关系(只看倍数,不看单位)。
What is a ratio? A:B represents a relative relationship (scale), independent of units.
常见场景 · Common uses: 图片尺寸 16:9、配方 1:2、地图比例尺、混合液稀释等。
模式提示:
• “系数 k”适合把配方/尺寸整体放大缩小(例如 1:3 × 2 = 2:6)。
• “指定新 A/B”适合已知一边目标值,求另一边保持同一比例(例如 16:9,A=1920,则 B=1080)。
Mode tips:
• “Factor k” scales the whole ratio (e.g., 1:3 × 2 = 2:6).
• “Given new A/B” keeps the ratio while solving the other side (e.g., 16:9, A=1920 ⇒ B=1080).
注意 · Notes:
1) 若 A 或 B 为 0,比例意义会变得特殊(例如 0:5)。工具仍可计算,但请确认你的业务含义。
If A or B is 0, the ratio becomes special (e.g., 0:5). The tool can compute, but ensure it matches your real scenario.
2) 小数比例会先转为分数近似(有限精度)再做化简,因此会出现“近似简化”。
Decimal ratios are converted to approximate fractions (limited precision) before simplifying, so results can be approximate.
支持分隔符:: / x ×
每行会自动提取两个数字并计算:简化比例、A/B 值、以及可选的“最接近整数简化”。
Each line extracts two numbers and returns simplified ratio, A/B value, plus an optional “nearest integer simplification”.
3. 使用说明 · Notes
  • 比例化简(最常用) · Simplify (most common):
    输入 A 与 B 后,工具会计算最大公约数(GCD),得到最简整数比例。例如 1920:1080 会化简为 16:9。
    After entering A and B, the tool uses GCD to reduce to the simplest integer ratio. For example, 1920:1080 becomes 16:9.
  • 等比放大/缩小 · Scale proportionally:
    选择“等比乘以系数 k”,你可以把比例整体乘以某个系数(可以是小数)。例如 3:5 × 2 = 6:10(再简化仍是 3:5)。
    Choose “Scale by factor k” to multiply both sides by a factor (can be decimal). E.g., 3:5 × 2 = 6:10 (which simplifies back to 3:5).
  • 按目标值求另一项(工程/设计常用) · Solve by target (common in design/engineering):
    当你已确定一边目标(例如图片宽度 1920),想保持 16:9 的比例,选择“指定新 A”,工具会算出 B=1080。
    If you know one target side (e.g., width 1920) and want to keep 16:9, choose “Given new A” to get B=1080.
  • 小数比例与近似 · Decimals & approximation:
    若 A/B 含小数,工具会用有限精度把它转成分数近似后再化简,所以结果是“近似最简”。你可以把输入改成更精确的数再算一次。
    For decimals, the tool converts with limited precision into a fraction before simplifying, so results can be approximate. Use more precise inputs if needed.
  • 批量解析建议 · Batch parse tips:
    你可以直接从 Excel、CAD 标注、设计稿或文档里复制一列比例粘贴进来(每行一个)。支持 16:9、3/2、1280×720 等常见写法。
    Paste ratios copied from Excel/CAD/spec docs (one per line). Supports formats like 16:9, 3/2, 1280×720, etc.
  • 常见误区 · Common pitfalls:
    ① 比例本身不带单位,A 与 B 单位必须一致才能有意义(例如都用 mm、都用 px)。
    A ratio has no unit; A and B must be in the same unit (mm with mm, px with px).
    ② 只要是“等比”,乘以任何同一个系数都不改变比例关系;但实际业务中可能会受整数限制、材料损耗、取整规则影响。
    Scaling by the same factor keeps the ratio, but real-world constraints (rounding, waste, integer-only requirements) may apply.

免责声明:本工具用于学习、设计估算与快速换算展示,未考虑特定行业的取整标准、误差容忍度与工艺限制。结果仅供参考。
Disclaimer: This tool is for learning and quick estimation. It does not account for industry-specific rounding rules, tolerance, or process constraints. Results are for reference only.