TOOLGRID
首页图片工具PDF 工具视频工具音频工具
更多
开发工具Web 与 SEO分类文本工具计算器关于
菜单
首页图片工具PDF 工具视频工具音频工具开发工具Web 与 SEO分类文本工具计算器关于
TOOLGRID

需要某项具体功能时,完整工具箱始终可用。

© 2026 TOOLGRID。保留所有权利。

工具

图片工具PDF 工具视频工具音频工具

资源

分类隐私政策

站点

关于条款联系
  1. 首页
  2. 计算工具
  3. Ratio Calculator

Ratio Calculator

Simplify a two-part ratio and compare its decimal value and percentage shares.

Pasted text or typed values→Ratio Calculator result浏览器本地处理

Loading tool…

格式与处理方式

工具代码会在浏览器中处理所选文件和输入内容,不会将其提交给 TOOLGRID 的处理接口。

输入
Pasted text or typed values
输出
Ratio Calculator result
运行引擎
Browser APIs
浏览器内运行这个工具能做什么

Simplify two numeric values into a colon ratio, calculate left divided by right, and show each side as a share of their sum. Decimal and exponent inputs are parsed as exact base-10 fractions for reduction; comparison displays are rounded separately.

For 16 and 9 the simplified ratio remains 16:9, the decimal comparison is about 1.7778, and the shares are 64% and 36% of the combined 25 parts.

Use values with the same unit and non-negative meaning when interpreting shares; mixed signs or a zero-sum pair can produce mathematically valid ratios that are not useful allocations.

代表性任务

这个工具可以完成什么

Reduce an aspect ratio

Simplify pixel dimensions such as 1920:1080 to 16:9 before documenting an image or video requirement.

Scale a recipe or mixture

Reduce two ingredient quantities to a reusable proportion after converting both values to the same unit.

Explain a two-part allocation

Show both the part-to-part ratio and each side's percentage of the combined total for a budget or sample split.

使用边界

依赖结果前需要检查什么

  • Performance and maximum practical input size depend on browser memory, device speed, and the structure of the input.
  • Review the generated result before replacing or publishing an original file.
MDN JavaScript reference

如何使用

  1. 1

    Enter the left and right quantities using the same measurement unit.

  2. 2

    Read the reduced colon ratio and decimal left-to-right comparison.

  3. 3

    Review each side's percentage of the sum when the values represent compatible non-negative parts.

  4. 4

    Check rounding before reusing a decimal ratio in layout, recipe, or allocation calculations.

使用场景
Reduce an aspect ratio

Simplify pixel dimensions such as 1920:1080 to 16:9 before documenting an image or video requirement.

Scale a recipe or mixture

Reduce two ingredient quantities to a reusable proportion after converting both values to the same unit.

Explain a two-part allocation

Show both the part-to-part ratio and each side's percentage of the combined total for a budget or sample split.

使用技巧
Convert units first

A ratio between 1 meter and 50 centimeters should be entered as 100:50 or 1:0.5, not 1:50.

Simplification is exact for accepted decimal text

The colon ratio is reduced from the entered base-10 fraction without a six-place rounding step. The separate decimal and percentage cards are display-rounded.

Interpret zero carefully

A right side of zero produces an infinite decimal ratio. When the two sides sum to zero, percentage shares are shown as — because an allocation denominator does not exist.

常见问题

Can both values be zero?

No. At least one side must be non-zero.

What is a simplified ratio?

Both values are divided by their greatest common divisor, so 4:6 becomes 2:3.

Can I use decimal inputs?

Yes. Accepted decimal and exponent text is converted to an exact base-10 fraction for greatest-common-divisor reduction. Extremely large, malformed, or unsafe display values fail closed.

What happens when the right value is zero?

The simplified ratio is still shown and the decimal left-to-right value is infinity. Percentage shares remain meaningful only when the combined total is non-zero.

Do the two percentage shares always add to 100%?

They do for ordinary non-negative values with a non-zero total, subject to display rounding. Mixed signs and a zero-sum pair are not meaningful allocation inputs.

继续当前流程

下一步常用工具

如果还需要校验、转换或复用结果,可以继续打开相近的浏览器本地工具。

Percentage Calculator计算工具 · 本地→Unit Converter单位换算 · 本地→Date Difference Calculator日期时间 · 本地→