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
- Enter price, currencyCode, referenceQuantity, unit. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| price | Price | Required. Finite number; minimum 0. |
| currencyCode | Nonempty literal label; no currency registry is checked. | Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192. |
| referenceQuantity | Reference Quantity | Required. Finite number; strictly above 0. |
| unit | Unit | Required. Text; minimum UTF-16 length 1; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| label | Label | Required. Text; maximum UTF-16 length 8192. |
| pricePerUnit | Price/referenceQuantity in the supplied currency and quantity unit. | Required. Finite number. |
{
"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
Similar or alternative tools
- Sample To Full Size Price Ratio
Compare sample and full-size supplied unit prices.
- Checkout Tip Default Change
Compare default and selected supplied tip amounts.