Skip to content

Main content

Trade Weight Price Base Share Tool

Calculate trade weight price base share from explicit caller-supplied inputs.

Loading tool…

Description

Require valueAtBasePrices between zero and positive totalBaseValue, then divide for share.

A trade index or share compares values on a declared price, currency, period, and coverage basis. Changing a denominator or quote orientation can change the interpretation substantially.

Require valueAtBasePrices between zero and positive totalBaseValue, then divide for share.

When to use this tool

Use Trade Weight Price Base Share when you need an explicit trade-ratio or index component.

How to use the tool and how it works

  1. Enter valueAtBasePrices, totalBaseValue. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read share. Use the output convention below.

Require valueAtBasePrices between zero and positive totalBaseValue, then divide for share.1

Input fieldMeaning and unitsAccepted input
valueAtBasePricesValue At Base PricesRequired. Finite number; minimum 0.
totalBaseValueTotal Base ValueRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
shareDimensionless fraction under the stated denominator policy.Required. Finite number.
json
{
  "input": {
    "valueAtBasePrices": 20,
    "totalBaseValue": 100
  },
  "output": {
    "share": 0.2
  }
}

Limitations and assumptions

  • Both values must use the same price base and currency; the tool does not construct a price index or validate weights.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Check source statistical definitions and compatible bases before comparing countries, partners, or time periods.

References

  1. Calculation and input contract: international-economics/trade-weight-price-base-share — tool.io

Similar or alternative tools