Skip to content

Main content

Dimension Triple Unit Once Style Tool

Calculate dimension triple unit once style from explicit caller-supplied inputs.

Loading tool…

Description

Join dimensions with spaced multiplication signs and append the unit once.

A unit label is text describing a quantity's intended scale. Joining tokens, adding powers or choosing spacing changes presentation; it does not convert the quantity, validate dimensional compatibility or verify a unit registry entry.

Join dimensions with spaced multiplication signs and append the unit once.

When to use this tool

Use Dimension Triple Unit Once Style when you need a specific quantity-and-unit text convention.

How to use the tool and how it works

  1. Enter dimensions, 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 text. Use the output convention below.

Require exactly three nonnegative dimensions and a nonempty unit. Join dimensions with spaced multiplication signs and append the unit once.1

Input fieldMeaning and unitsAccepted input
dimensionsDimensionsRequired. Array of finite number; maximum items 256.
unitUnitRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
textLiteral formatted output under the stated grammar and display convention.Required. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "dimensions": [
      2,
      3,
      4
    ],
    "unit": "cm"
  },
  "output": {
    "text": "2 × 3 × 4 cm"
  }
}

Limitations and assumptions

  • The dimensions share the declared unit by assumption. Axis names, order, physical compatibility and a volume calculation are not provided.
  • 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

Use a unit-aware calculation for actual conversion and dimensional checks. Select a destination-appropriate typography and retain the intended unit meaning when preparing labels.

References

  1. Calculation and input contract: format/dimension-triple-unit-once-style — tool.io

Similar or alternative tools