Quantity Operations

Perform arithmetic operations and comparisons on UCUM quantities.

Operation Input

Configure two quantities and the operation to perform

First Quantity (A)

Second Quantity (B)

Operation Result

The result of the quantity operation

Configure quantities and operation above to see the result

Example Operations

Click any example to load it into the calculator

About Quantity Operations

UCUM quantity operations require dimensional compatibility between operands. The system automatically handles unit conversions when possible.

Arithmetic Operations

  • Addition: Both quantities must have same dimensions
  • Subtraction: Both quantities must have same dimensions
  • Result uses the unit of the first operand

Comparison

  • Returns -1 (less), 0 (equal), or 1 (greater)
  • Automatically converts units for comparison
  • Requires dimensional compatibility