Skip to content

Main content

Product Price Unit Reference Label

Label an explicit product price and reference quantity while retaining its per-unit equivalent without currency conversion.

Loading tool…

Description

Label a supplied product reference-quantity price and return price per unit.

Consumer records distinguish events, choices, prices, quantities and supplied survey scales. A unit-price comparison requires comparable goods and quantity units, while a reversed score retains the original scale bounds. An observed time gap or selected option does not establish motivation, causation, consent or the fairness of a commercial practice.

Label a supplied product reference-quantity price and return price per unit.

When to use this tool

Use Product Price Unit Reference Label when you already have price, currencyCode, referenceQuantity, unit and need to label a supplied product reference-quantity price and return price per unit.

How to use the tool and how it works

  1. Enter price, currencyCode, referenceQuantity, unit. 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 label, pricePerUnit. Use the output convention below.

Require price>=0, referenceQuantity>0 and currencyCode/unit text nonempty; label price per reference quantity, return price/referenceQuantity.1

Input fieldMeaning and unitsAccepted input
pricePriceRequired. Finite number; minimum 0.
currencyCodeNonempty literal label; no currency registry is checked.Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
referenceQuantityReference QuantityRequired. Finite number; strictly above 0.
unitUnitRequired. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
labelLabelRequired. Text; maximum UTF-16 length 8192.
pricePerUnitPrice/referenceQuantity in the supplied currency and quantity unit.Required. Finite number.
json
{
  "input": {
    "price": 6,
    "currencyCode": "USD",
    "referenceQuantity": 3,
    "unit": "kg"
  },
  "output": {
    "label": "USD 6 per 3 kg",
    "pricePerUnit": 2
  }
}

Limitations and assumptions

  • Codes and units are unparsed labels. No actual currency, comparable quantity basis, tax, pricing compliance or purchase suitability is established.
  • 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

Review the original transaction, interface, survey and event records for a behavioral conclusion. Use the complete study design and applicable commercial terms when interpreting comparisons; local flags and ratios do not estimate demand or verify an actual customer experience.

References

  1. Calculation and input contract: consumer-behavior/product-price-unit-reference-label — tool.io

Similar or alternative tools